Package org.eclipse.xtext.xdoc.xdoc

Examples of org.eclipse.xtext.xdoc.xdoc.Chapter


    set.getResource(URI.createURI(ParserTest.TEST_FILE_DIR + "01-twoChapters.xdoc"), true);
    set.getResource(URI.createURI(ParserTest.TEST_FILE_DIR + "02-twoChapters.xdoc"), true);
    XdocFile file = (XdocFile) getModel((XtextResource)set.getResource(URI.createURI(ParserTest.TEST_FILE_DIR + "twoChaptersDoc.xdoc"), true));
    Document doc = (Document) file.getMainSection();
    for(int i = 0; i < doc.getChapters().size(); i++) {
      Chapter chapter = doc.getChapters().get(i);
      generate(chapter);
    }
    generate(doc);
    validate(EXPECTATION_DIR + "01-twoChapters.xdoc.html", RESULT_DIR + "01-twoChapters.xdoc.html");
    validate(EXPECTATION_DIR + "02-twoChapters.xdoc.html", RESULT_DIR + "02-twoChapters.xdoc.html");
View Full Code Here


   * <!-- end-user-doc -->
   * @generated
   */
  public void setChapter(Chapter newChapter)
  {
    Chapter oldChapter = chapter;
    chapter = newChapter;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, XdocPackage.CHAPTER_REF__CHAPTER, oldChapter, chapter));
  }
View Full Code Here

  }
 
  protected CharSequence _genLabel(final ChapterRef cRef) {
    StringConcatenation _builder = new StringConcatenation();
    {
      Chapter _chapter = cRef.getChapter();
      String _name = _chapter.getName();
      boolean _notEquals = (!Objects.equal(_name, null));
      if (_notEquals) {
        _builder.append("\\label{");
        Chapter _chapter_1 = cRef.getChapter();
        String _name_1 = _chapter_1.getName();
        String _string = null;
        if (_name_1!=null) {
          _string=_name_1.toString();
        }
        _builder.append(_string, "");
View Full Code Here

    String _switchResult = null;
    boolean _matched = false;
    if (!_matched) {
      if (identifiable instanceof ChapterRef) {
        _matched=true;
        Chapter _chapter = ((ChapterRef)identifiable).getChapter();
        _switchResult = this.getLocalId(_chapter);
      }
    }
    if (!_matched) {
      if (identifiable instanceof SectionRef) {
View Full Code Here

      }
    }
    if (!_matched) {
      if (identifiable instanceof ChapterRef) {
        _matched=true;
        Chapter _chapter = ((ChapterRef)identifiable).getChapter();
        _switchResult = this.getFullURL(_chapter);
      }
    }
    if (!_matched) {
      if (identifiable instanceof SectionRef) {
View Full Code Here

      }
    }
    if (!_matched) {
      if (identifiable instanceof ChapterRef) {
        _matched=true;
        Chapter _chapter = ((ChapterRef)identifiable).getChapter();
        _switchResult = this.getResourceURL(_chapter);
      }
    }
    if (!_matched) {
      if (identifiable instanceof SectionRef) {
View Full Code Here

  }
 
  protected CharSequence _generate(final ChapterRef chap, final IFileSystemAccess fsa, final CharSequence leftNav, final CharSequence leftNavUnfoldSubTocId) {
    CharSequence _xblockexpression = null;
    {
      Chapter _chapter = chap.getChapter();
      String _fullURL = this.naming.getFullURL(chap);
      this.generateFile(_chapter, fsa, leftNav, _fullURL);
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("<a href=\"");
      String _fullURL_1 = this.naming.getFullURL(chap);
View Full Code Here

      }
    }
    if (!_matched) {
      if (it instanceof ChapterRef) {
        _matched=true;
        Chapter _chapter = ((ChapterRef)it).getChapter();
        _switchResult = this.getTargetURI(_chapter);
      }
    }
    if (!_matched) {
      if (it instanceof SectionRef) {
View Full Code Here

    };
    IterableExtensions.<Section>forEach(_subSections, _function);
  }
 
  protected void _populateFileMap(final ChapterRef it) {
    Chapter _chapter = it.getChapter();
    this.populateFileMap(_chapter);
  }
View Full Code Here

  protected List<? extends AbstractSection> _sections(final PartRef part) {
    return part.getChapters();
  }
 
  protected List<? extends AbstractSection> _sections(final ChapterRef chapter) {
    Chapter _chapter = chapter.getChapter();
    return _chapter.getSubSections();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.xdoc.xdoc.Chapter

Copyright © 2018 www.massapicom. 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.