Examples of TextOrMarkup


Examples of org.eclipse.xtext.xdoc.xdoc.TextOrMarkup

    _builder.append("\t");
    _builder.append("include(\"include.php\");");
    _builder.newLine();
    _builder.append("\t");
    _builder.append("$pageTitle \t\t= \"");
    TextOrMarkup _title = as.getTitle();
    CharSequence _genPlainText = this.pt.genPlainText(_title);
    _builder.append(_genPlainText, "\t");
    _builder.append("\";");
    _builder.newLineIfNotEmpty();
    _builder.append("\t");
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.TextOrMarkup

    CharSequence _genScriptsAndStyles = this.genScriptsAndStyles(doc);
    _builder.append(_genScriptsAndStyles, "\t");
    _builder.newLineIfNotEmpty();
    _builder.append("\t");
    _builder.append("$pageTitle \t\t= \"");
    TextOrMarkup _title = doc.getTitle();
    CharSequence _genPlainText = this.pt.genPlainText(_title);
    _builder.append(_genPlainText, "\t");
    _builder.append("\";");
    _builder.newLineIfNotEmpty();
    _builder.append("\t");
    _builder.newLine();
    _builder.append("\t");
    _builder.append("$html .=  file_get_contents(\'_index.html\');");
    _builder.newLine();
    _builder.newLine();
    _builder.append("\t");
    _builder.append("# Generate the web page");
    _builder.newLine();
    _builder.append("\t");
    _builder.append("$App->generatePage(\"Nova\", $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html);");
    _builder.newLine();
    _builder.append("?>");
    _builder.newLine();
    fsa.generateFile("index.php", Outlets.WEB_SITE, _builder);
    File _file = new File(((Outlets.WEB_SITE_PATH_NAME + "/") + "include.php"));
    boolean _exists = _file.exists();
    boolean _not = (!_exists);
    if (_not) {
      StringConcatenation _builder_1 = new StringConcatenation();
      _builder_1.append("<?php");
      _builder_1.newLine();
      _builder_1.newLine();
      _builder_1.newLine();
      _builder_1.append("\t");
      _builder_1.append("# Set the theme for your project\'s web pages.");
      _builder_1.newLine();
      _builder_1.append("\t");
      _builder_1.append("# See the Committer Tools \"How Do I\" for list of themes");
      _builder_1.newLine();
      _builder_1.append("\t");
      _builder_1.append("# https://dev.eclipse.org/committers/");
      _builder_1.newLine();
      _builder_1.append("\t");
      _builder_1.append("# Optional: defaults to system theme ");
      _builder_1.newLine();
      _builder_1.append("\t");
      _builder_1.append("$theme = \"Nova\";");
      _builder_1.newLine();
      _builder_1.append("\t");
      _builder_1.newLine();
      _builder_1.append("\t");
      _builder_1.append("# Define your project-wide Nav bars here.");
      _builder_1.newLine();
      _builder_1.append("\t");
      _builder_1.append("# Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)");
      _builder_1.newLine();
      _builder_1.append("\t");
      _builder_1.append("# these are optional");
      _builder_1.newLine();
      _builder_1.append("\t");
      _builder_1.append("# $Nav->setLinkList(array());");
      _builder_1.newLine();
      _builder_1.newLine();
      _builder_1.append("\t");
      {
        TextOrMarkup _authors = doc.getAuthors();
        boolean _notEquals = (!Objects.equal(_authors, null));
        if (_notEquals) {
          _builder_1.append("$pageAuthor\t\t= \"");
          TextOrMarkup _authors_1 = doc.getAuthors();
          CharSequence _genPlainText_1 = this.pt.genPlainText(_authors_1);
          _builder_1.append(_genPlainText_1, "\t");
          _builder_1.append("\";");
        }
      }
      _builder_1.newLineIfNotEmpty();
      _builder_1.append("\t");
      {
        TextOrMarkup _title_1 = doc.getTitle();
        boolean _notEquals_1 = (!Objects.equal(_title_1, null));
        if (_notEquals_1) {
          _builder_1.append("$pageTitle \t\t= \"");
          TextOrMarkup _title_2 = doc.getTitle();
          CharSequence _genPlainText_2 = this.pt.genPlainText(_title_2);
          _builder_1.append(_genPlainText_2, "\t");
          _builder_1.append("\";");
        }
      }
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.TextOrMarkup

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetTitle(TextOrMarkup newTitle, NotificationChain msgs)
  {
    TextOrMarkup oldTitle = title;
    title = newTitle;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, XdocPackage.ABSTRACT_SECTION__TITLE, oldTitle, newTitle);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.TextOrMarkup

 
  public CharSequence authorAndTitle(final Document doc) {
    StringConcatenation _builder = new StringConcatenation();
    {
      boolean _and = false;
      TextOrMarkup _authors = doc.getAuthors();
      boolean _notEquals = (!Objects.equal(_authors, null));
      if (!_notEquals) {
        _and = false;
      } else {
        TextOrMarkup _authors_1 = doc.getAuthors();
        EList<EObject> _contents = _authors_1.getContents();
        boolean _isEmpty = _contents.isEmpty();
        boolean _not = (!_isEmpty);
        _and = _not;
      }
      if (_and) {
        _builder.append("\\author{");
        {
          TextOrMarkup _authors_2 = doc.getAuthors();
          EList<EObject> _contents_1 = _authors_2.getContents();
          for(final EObject o : _contents_1) {
            CharSequence _genText = this.genText(o);
            _builder.append(_genText, "");
          }
        }
        _builder.append("}");
        _builder.newLineIfNotEmpty();
      }
    }
    _builder.newLine();
    {
      TextOrMarkup _title = doc.getTitle();
      boolean _notEquals_1 = (!Objects.equal(_title, null));
      if (_notEquals_1) {
        _builder.append("\\title{");
        {
          TextOrMarkup _title_1 = doc.getTitle();
          EList<EObject> _contents_2 = null;
          if (_title_1!=null) {
            _contents_2=_title_1.getContents();
          }
          for(final EObject o_1 : _contents_2) {
            CharSequence _genText_1 = this.genText(o_1);
            _builder.append(_genText_1, "");
          }
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.TextOrMarkup

    if (!_matched) {
      if (sec instanceof Part) {
        _matched=true;
        StringConcatenation _builder_1 = new StringConcatenation();
        _builder_1.append("\\part{");
        TextOrMarkup _title = ((Part)sec).getTitle();
        CharSequence _genNonParContent = this.genNonParContent(_title);
        _builder_1.append(_genNonParContent, "");
        _builder_1.append("}");
        _switchResult = _builder_1;
      }
    }
    if (!_matched) {
      if (sec instanceof Chapter) {
        _matched=true;
        StringConcatenation _builder_1 = new StringConcatenation();
        _builder_1.append("\\chapter{");
        TextOrMarkup _title = ((Chapter)sec).getTitle();
        CharSequence _genNonParContent = this.genNonParContent(_title);
        _builder_1.append(_genNonParContent, "");
        _builder_1.append("}");
        _switchResult = _builder_1;
      }
    }
    if (!_matched) {
      if (sec instanceof Section) {
        _matched=true;
        StringConcatenation _builder_1 = new StringConcatenation();
        _builder_1.append("\\section{");
        TextOrMarkup _title = ((Section)sec).getTitle();
        CharSequence _genNonParContent = this.genNonParContent(_title);
        _builder_1.append(_genNonParContent, "");
        _builder_1.append("}");
        _switchResult = _builder_1;
      }
    }
    if (!_matched) {
      if (sec instanceof Section2) {
        _matched=true;
        StringConcatenation _builder_1 = new StringConcatenation();
        _builder_1.append("\\subsection{");
        TextOrMarkup _title = ((Section2)sec).getTitle();
        CharSequence _genNonParContent = this.genNonParContent(_title);
        _builder_1.append(_genNonParContent, "");
        _builder_1.append("}");
        _switchResult = _builder_1;
      }
    }
    if (!_matched) {
      if (sec instanceof Section3) {
        _matched=true;
        StringConcatenation _builder_1 = new StringConcatenation();
        _builder_1.append("\\subsubsection{");
        TextOrMarkup _title = ((Section3)sec).getTitle();
        CharSequence _genNonParContent = this.genNonParContent(_title);
        _builder_1.append(_genNonParContent, "");
        _builder_1.append("}");
        _switchResult = _builder_1;
      }
    }
    if (!_matched) {
      if (sec instanceof Section4) {
        _matched=true;
        StringConcatenation _builder_1 = new StringConcatenation();
        _builder_1.append("\\paragraph{");
        TextOrMarkup _title = ((Section4)sec).getTitle();
        CharSequence _genNonParContent = this.genNonParContent(_title);
        _builder_1.append(_genNonParContent, "");
        _builder_1.append("}");
        _switchResult = _builder_1;
      }
    }
    _builder.append(_switchResult, "");
    _builder.newLineIfNotEmpty();
    CharSequence _switchResult_1 = null;
    boolean _matched_1 = false;
    if (!_matched_1) {
      if (sec instanceof Part) {
        _matched_1=true;
        _switchResult_1 = this.genLabel(sec);
      }
    }
    if (!_matched_1) {
      if (sec instanceof Chapter) {
        _matched_1=true;
        _switchResult_1 = this.genLabel(sec);
      }
    }
    if (!_matched_1) {
      if (sec instanceof Section) {
        _matched_1=true;
        _switchResult_1 = this.genLabel(sec);
      }
    }
    if (!_matched_1) {
      TextOrMarkup _title = sec.getTitle();
      _switchResult_1 = this.genLabel(_title);
    }
    _builder.append(_switchResult_1, "");
    _builder.newLineIfNotEmpty();
    CharSequence _genContent = this.genContent(sec);
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.TextOrMarkup

  protected CharSequence _genText(final Item item) {
    StringConcatenation _builder = new StringConcatenation();
    _builder.append("\\item \\begin{minipage}[t]{\\XdocItemIndent}");
    {
      EList<TextOrMarkup> _contents = item.getContents();
      TextOrMarkup _head = IterableExtensions.<TextOrMarkup>head(_contents);
      boolean _block = LatexUtils.block(_head);
      if (_block) {
        _builder.append("\\vspace*{-\\baselineskip}");
      }
    }
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.TextOrMarkup

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetAltText(TextOrMarkup newAltText, NotificationChain msgs)
  {
    TextOrMarkup oldAltText = altText;
    altText = newAltText;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, XdocPackage.CODE_REF__ALT_TEXT, oldAltText, newAltText);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.TextOrMarkup

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetSubtitle(TextOrMarkup newSubtitle, NotificationChain msgs)
  {
    TextOrMarkup oldSubtitle = subtitle;
    subtitle = newSubtitle;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, XdocPackage.DOCUMENT__SUBTITLE, oldSubtitle, newSubtitle);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.TextOrMarkup

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetAuthors(TextOrMarkup newAuthors, NotificationChain msgs)
  {
    TextOrMarkup oldAuthors = authors;
    authors = newAuthors;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, XdocPackage.DOCUMENT__AUTHORS, oldAuthors, newAuthors);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.TextOrMarkup

    _builder.append("<head>");
    _builder.newLine();
    _builder.append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" >");
    _builder.newLine();
    _builder.append("<title>");
    TextOrMarkup _title = document.getTitle();
    CharSequence _genPlainText = this.plainText.genPlainText(_title);
    _builder.append(_genPlainText, "");
    _builder.append("</title>");
    _builder.newLineIfNotEmpty();
    _builder.newLine();
    _builder.append("<link href=\"book.css\" rel=\"stylesheet\" type=\"text/css\">");
    _builder.newLine();
    _builder.append("<link href=\"code.css\" rel=\"stylesheet\" type=\"text/css\">");
    _builder.newLine();
    _builder.append("<link rel=\"home\" href=\"");
    String _fullURL = this.eclipseNamingExtensions.getFullURL(document);
    _builder.append(_fullURL, "");
    _builder.append("\" title=\"\">");
    _builder.newLineIfNotEmpty();
    _builder.append("</head>");
    _builder.newLine();
    _builder.append("<body>");
    _builder.newLine();
    _builder.append("<h1>");
    TextOrMarkup _title_1 = document.getTitle();
    CharSequence _genPlainText_1 = this.plainText.genPlainText(_title_1);
    _builder.append(_genPlainText_1, "");
    _builder.append("</h1>");
    _builder.newLineIfNotEmpty();
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.