use of org.eclipse.xtext.ui.editor.hierarchy.XtextCallHierarchyBuilder in project xtext-eclipse by eclipse.
the class OpenCallHierarchyHandler method createHierarchyBuilder.
@Override
protected IHierarchyBuilder createHierarchyBuilder(final EObject target) {
final XtextCallHierarchyBuilder xtextCallHierarchyBuilder = this._iGlobalServiceProvider.<XtextCallHierarchyBuilder>findService(target, XtextCallHierarchyBuilder.class);
xtextCallHierarchyBuilder.setResourceAccess(this.resourceAccess);
xtextCallHierarchyBuilder.setIndexData(this._iGlobalServiceProvider.<IResourceDescriptions>findService(target, IResourceDescriptions.class));
final DeferredHierarchyBuilder deferredHierarchyBuilder = this._iGlobalServiceProvider.<DeferredHierarchyBuilder>findService(target, DeferredHierarchyBuilder.class);
deferredHierarchyBuilder.setHierarchyBuilder(xtextCallHierarchyBuilder);
return deferredHierarchyBuilder;
}
use of org.eclipse.xtext.ui.editor.hierarchy.XtextCallHierarchyBuilder in project xtext-eclipse by eclipse.
the class XtextCallHierarchyBuilderTest method testBuildCalleeHierarchy.
protected void testBuildCalleeHierarchy(Procedure1<? super AbstractHierarchyBuilderTest.HierarchyBuilderTestConfiguration> configurator) {
testBuildHierarchy((AbstractHierarchyBuilderTest.HierarchyBuilderTestConfiguration it) -> {
it.setHierarchyBuilderProvider((ResourceSet resourceSet) -> {
XtextCallHierarchyBuilder callHierarchyBuilder = configureBuilderWith(callHierarchyBuilderProvider.get(), resourceSet);
callHierarchyBuilder.setHierarchyType(ICallHierarchyBuilder.CallHierarchyType.CALLEE);
return callHierarchyBuilder;
});
configurator.apply(it);
});
}
use of org.eclipse.xtext.ui.editor.hierarchy.XtextCallHierarchyBuilder in project xtext-eclipse by eclipse.
the class XtextCallHierarchyBuilderTest method testBuildHierarchy.
@Override
protected void testBuildHierarchy(Procedure1<? super AbstractHierarchyBuilderTest.HierarchyBuilderTestConfiguration> configurator) {
super.testBuildHierarchy((AbstractHierarchyBuilderTest.HierarchyBuilderTestConfiguration it) -> {
it.setHierarchyBuilderProvider((ResourceSet resourceSet) -> {
XtextCallHierarchyBuilder callHierarchyBuilder = configureBuilderWith(callHierarchyBuilderProvider.get(), resourceSet);
callHierarchyBuilder.setHierarchyType(ICallHierarchyBuilder.CallHierarchyType.CALLER);
return callHierarchyBuilder;
});
configurator.apply(it);
});
}
Aggregations