Package org.eclipse.xtext.xdoc.xdoc

Examples of org.eclipse.xtext.xdoc.xdoc.Section2


  }
 
  protected CharSequence _genLabel(final Section2Ref sRef) {
    StringConcatenation _builder = new StringConcatenation();
    {
      Section2 _section2 = sRef.getSection2();
      String _name = _section2.getName();
      boolean _notEquals = (!Objects.equal(_name, null));
      if (_notEquals) {
        _builder.append("\\label{");
        Section2 _section2_1 = sRef.getSection2();
        String _name_1 = _section2_1.getName();
        String _string = null;
        if (_name_1!=null) {
          _string=_name_1.toString();
        }
        _builder.append(_string, "");
View Full Code Here


   * <!-- end-user-doc -->
   * @generated
   */
  public void setSection2(Section2 newSection2)
  {
    Section2 oldSection2 = section2;
    section2 = newSection2;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, XdocPackage.SECTION2_REF__SECTION2, oldSection2, section2));
  }
View Full Code Here

      }
    }
    if (!_matched) {
      if (identifiable instanceof Section2Ref) {
        _matched=true;
        Section2 _section2 = ((Section2Ref)identifiable).getSection2();
        _switchResult = this.getLocalId(_section2);
      }
    }
    if (!_matched) {
      {
View Full Code Here

      }
    }
    if (!_matched) {
      if (identifiable instanceof Section2Ref) {
        _matched=true;
        Section2 _section2 = ((Section2Ref)identifiable).getSection2();
        _switchResult = this.getFullURL(_section2);
      }
    }
    if (!_matched) {
      if (identifiable instanceof Chapter) {
View Full Code Here

      }
    }
    if (!_matched) {
      if (identifiable instanceof Section2Ref) {
        _matched=true;
        Section2 _section2 = ((Section2Ref)identifiable).getSection2();
        _switchResult = this.getResourceURL(_section2);
      }
    }
    if (!_matched) {
      Resource _eResource = identifiable.eResource();
View Full Code Here

  }
 
  protected CharSequence _generate(final Section2Ref section2, final IFileSystemAccess fsa, final CharSequence leftNav, final CharSequence leftNavUnfoldSubTocId) {
    CharSequence _xblockexpression = null;
    {
      Section2 _section2 = section2.getSection2();
      String _fullURL = this.naming.getFullURL(section2);
      this.generateFile(_section2, fsa, leftNav, _fullURL);
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("<a href=\"");
      String _fullURL_1 = this.naming.getFullURL(section2);
View Full Code Here

      Assert.assertEquals("foo�", _text_2);
      EList<Section2> _subSections_2 = section.getSubSections();
      int _size_5 = _subSections_2.size();
      Assert.assertEquals(1, _size_5);
      EList<Section2> _subSections_3 = section.getSubSections();
      final Section2 section2 = IterableExtensions.<Section2>head(_subSections_3);
      TextOrMarkup _title_6 = section2.getTitle();
      EList<EObject> _contents_6 = _title_6.getContents();
      int _size_6 = _contents_6.size();
      Assert.assertEquals(1, _size_6);
      TextOrMarkup _title_7 = section2.getTitle();
      EList<EObject> _contents_7 = _title_7.getContents();
      EObject _head_3 = IterableExtensions.<EObject>head(_contents_7);
      textPart = ((TextPart) _head_3);
      String _text_3 = textPart.getText();
      Assert.assertEquals("pilz", _text_3);
      EList<Section3> _subSections_4 = section2.getSubSections();
      int _size_7 = _subSections_4.size();
      Assert.assertEquals(1, _size_7);
      EList<Section3> _subSections_5 = section2.getSubSections();
      final Section3 section3 = IterableExtensions.<Section3>head(_subSections_5);
      TextOrMarkup _title_8 = section3.getTitle();
      EList<EObject> _contents_8 = _title_8.getContents();
      int _size_8 = _contents_8.size();
      Assert.assertEquals(1, _size_8);
View Full Code Here

      }
    }
    if (!_matched) {
      if (it instanceof Section2Ref) {
        _matched=true;
        Section2 _section2 = ((Section2Ref)it).getSection2();
        _switchResult = this.getTargetURI(_section2);
      }
    }
    if (!_matched) {
      if (it instanceof Document) {
View Full Code Here

    };
    IterableExtensions.<AbstractSection>forEach(_filter, _function);
  }
 
  protected void _populateFileMap(final Section2Ref it, final AbstractSection fileSection) {
    Section2 _section2 = it.getSection2();
    this.populateFileMap(_section2, fileSection);
  }
View Full Code Here

    Section _section = section.getSection();
    return _section.getSubSections();
  }
 
  protected List<? extends AbstractSection> _sections(final Section2Ref section) {
    Section2 _section2 = section.getSection2();
    return _section2.getSubSections();
  }
View Full Code Here

TOP

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

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.