use of org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider in project xtext-eclipse by eclipse.
the class OutlineNodeTest method createRootNode.
protected DocumentRootNode createRootNode() {
XtextDocument document = get(XtextDocument.class);
document.setInput(resource);
IOutlineTreeStructureProvider treeStructureProvider = new IOutlineTreeStructureProvider() {
@Override
public void createChildren(IOutlineNode parentNode, EObject modelElement) {
new EObjectNode(child0Element, parentNode, (ImageDescriptor) null, "child", false);
}
};
DocumentRootNode rootNode = new DocumentRootNode((ImageDescriptor) null, "root", document, treeStructureProvider);
return rootNode;
}
Aggregations