Package org.eclipse.xtext.ui.editor.outline.impl

Examples of org.eclipse.xtext.ui.editor.outline.impl.EObjectNode


//      }
//    }
   
    IOutlineNode parent = parentNode.getParent();
    if (parent instanceof EObjectNode) {
      EObjectNode eo = (EObjectNode) parent;
      String className = eo.getText().toString();
      if(className.equals(node.getClass_())){
        super._createNode(parentNode, node);
      }
    }
   
View Full Code Here


 


  protected void _createChildren(DocumentRootNode parentNode, TaskModel todo) {
    for (Content content : todo.getChildren()) {
      EObjectNode child = createEObjectNode(parentNode, content);
      createChildrenDispatcher.invoke(child, content);
    }
  }
View Full Code Here


  protected void _createChildren(AbstractOutlineNode parentNode,
      Container content) {
    for (Content child : content.getChildren()) {
      EObjectNode childNode = createEObjectNode(parentNode, child);
      createChildrenDispatcher.invoke(childNode, child);
    }
  }
View Full Code Here

 
  protected void _createChildren(DocumentRootNode parentNode, stylesheet stylesheet) {
    for (ruleset ruleset : stylesheet.getRuleset()) {
      for (selector s : ruleset.getSelectors()) {
        boolean isLeaf = ruleset.getDeclarations().isEmpty();
        EObjectNode node = createEObjectNode(parentNode, ruleset, labelProvider.getImage(s), labelProvider.getText(s), isLeaf);
        node.setShortTextRegion(locationInFileProvider.getSignificantTextRegion(s));
        if (!isLeaf) {
          createChildren(node, ruleset);
        }
      }
     
View Full Code Here

      Iterator<CssTok> iterator = d.getValueTokens().iterator();
      while (iterator.hasNext()) {
        CssTok next = iterator.next();
        valueBuilder.append(labelProvider.getText(next));
      }
      EObjectNode node = createEObjectNode(parentNode, d, labelProvider.getImage(d.getProperty()), labelProvider.getText(d.getProperty()) + ": " +valueBuilder.toString().trim() + (d.isImportant()?" !important":""), true);
      node.setShortTextRegion(locationInFileProvider.getSignificantTextRegion(d.getProperty()));
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.ui.editor.outline.impl.EObjectNode

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.