use of org.eclipse.xtext.ide.editor.hierarchy.IHierarchyNode in project xtext-eclipse by eclipse.
the class AbstractCallHierarchyViewPart method selectionChanged.
@Override
public void selectionChanged(SelectionChangedEvent event) {
if (event.getSelectionProvider() == callHierarchyViewer) {
IHierarchyNode callHierarchyNode = getSelectedNode(event.getSelection());
onCallHierarchyNodeChanged(callHierarchyNode);
}
}
use of org.eclipse.xtext.ide.editor.hierarchy.IHierarchyNode in project xtext-eclipse by eclipse.
the class AbstractHierarchyViewPart method createRoot.
protected IHierarchyRoot createRoot(IProgressMonitor monitor) {
if (builder == null || rootURI == null)
return IHierarchyRoot.EMPTY;
Collection<IHierarchyNode> roots = builder.buildRoots(rootURI, monitor);
if (roots.isEmpty()) {
return IHierarchyRoot.EMPTY;
}
DefaultHierarchyRoot root = new DefaultHierarchyRoot();
root.getRoots().addAll(roots);
return root;
}
Aggregations