Examples of IOutlineNode


Examples of org.eclipse.xtext.ui.editor.outline.IOutlineNode

*
* @author alruiz@google.com (Alex Ruiz)
*/
public class ProtobufOutlinePage extends OutlinePage {
  @Override protected List<IOutlineNode> getInitiallyExpandedNodes() {
    IOutlineNode rootNode = getTreeProvider().createRoot(getXtextDocument());
    List<IOutlineNode> nodes = newArrayList(rootNode);
    addChildrenToExpand(singletonList(rootNode), nodes, 0);
    return nodes;
  }
View Full Code Here

Examples of org.eclipse.xtext.ui.editor.outline.IOutlineNode

   */
  protected void _createNode(IOutlineNode parentNode, classDecl node) {
   
    super._createNode(parentNode, node);
    List<IOutlineNode> children = parentNode.getChildren();
    IOutlineNode just = children.get(children.size()-1);
    createEStructuralFeatureNode(just, this.program, S3DPackage.Literals.PROGRAM__MDECL, this.provider.get(), "methods", false);
  }
View Full Code Here

Examples of org.eclipse.xtext.ui.editor.outline.IOutlineNode

//          }
//        }
//      }
//    }
   
    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
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.