Class CallHierarchyResult

  • All Implemented Interfaces:
    ICallHierarchyResult, org.eclipse.xtext.util.IAcceptor<org.eclipse.xtext.resource.IReferenceDescription>

    public class CallHierarchyResult
    extends Object
    implements ICallHierarchyResult, org.eclipse.xtext.util.IAcceptor<org.eclipse.xtext.resource.IReferenceDescription>
    Special implementation of ICallHierarchyResult for Built-In language.
    Also this implementation provides API for collecting IReferenceDescription from {@link IReferenceFinder#findAllReferences(...)}
    • Constructor Detail

      • CallHierarchyResult

        protected CallHierarchyResult​(CallHierarchyQuery query)
        query - actual CallHierarchyQuery corresponding for this result, can't be null
    • Method Detail

      • getImageDescriptor

        public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
        Description copied from interface: ICallHierarchyResult
        Returns an image descriptor for the given ICallHierarchyResult.
        Specified by:
        getImageDescriptor in interface ICallHierarchyResult
        an image representing this search result or null
      • getSignature

        public String getSignature()
        Description copied from interface: ICallHierarchyResult
        Returns a user readable label for this call hierarchy result. The label is typically used in the result view and should contain the search query string and number of matches.
        Specified by:
        getSignature in interface ICallHierarchyResult
        the label for this search result, can't be null
      • accept

        public void accept​(org.eclipse.xtext.resource.IReferenceDescription referenceDescription)
        Specified by:
        accept in interface org.eclipse.xtext.util.IAcceptor<org.eclipse.xtext.resource.IReferenceDescription>
      • getMatchingReferences

        public List<org.eclipse.xtext.resource.IReferenceDescription> getMatchingReferences()
        Gets all call hierarchy result
        list of found elements URI, never null
      • reset

        public void reset()
        Resets result. Sends special event about it
      • finish

        public void finish()
        Finishes finding call hierarchy results. Sends special event about it