Search in sources :

Example 1 with AssociationHierarchyBuilder

use of org.eclipse.xtext.example.domainmodel.ui.editor.hierarchy.AssociationHierarchyBuilder in project xtext-eclipse by eclipse.

the class OpenAssociationHierarchyHandler method createHierarchyBuilder.

@Override
protected IHierarchyBuilder createHierarchyBuilder(final EObject target) {
    final AssociationHierarchyBuilder xtextCallHierarchyBuilder = this._iGlobalServiceProvider.<AssociationHierarchyBuilder>findService(target, AssociationHierarchyBuilder.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;
}
Also used : IResourceDescriptions(org.eclipse.xtext.resource.IResourceDescriptions) AssociationHierarchyBuilder(org.eclipse.xtext.example.domainmodel.ui.editor.hierarchy.AssociationHierarchyBuilder) DeferredHierarchyBuilder(org.eclipse.xtext.ui.editor.hierarchy.DeferredHierarchyBuilder)

Aggregations

AssociationHierarchyBuilder (org.eclipse.xtext.example.domainmodel.ui.editor.hierarchy.AssociationHierarchyBuilder)1 IResourceDescriptions (org.eclipse.xtext.resource.IResourceDescriptions)1 DeferredHierarchyBuilder (org.eclipse.xtext.ui.editor.hierarchy.DeferredHierarchyBuilder)1