Class BslReferenceSearchResultContentProvider

  • All Implemented Interfaces:
    IContentProvider, IStructuredContentProvider, ITreeContentProvider, org.eclipse.search.ui.ISearchResultListener, org.eclipse.xtext.resource.IResourceDescription.Event.Listener

    public class BslReferenceSearchResultContentProvider
    extends org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchResultContentProvider
    Special implementation of ReferenceSearchResultContentProvider for ReferenceSearchViewPage This implementation has special behavior for IReferenceDescription getting from different implementations of IReferenceFinderParticipant
    • Constructor Detail

      • BslReferenceSearchResultContentProvider

        @Inject
        public BslReferenceSearchResultContentProvider​(org.eclipse.xtext.resource.IResourceDescriptions resourceDescriptions)
    • Method Detail

      • inputChanged

        public void inputChanged​(Viewer viewer,
                                 Object oldInput,
                                 Object newInput)
        Specified by:
        inputChanged in interface IContentProvider
        Overrides:
        inputChanged in class org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchResultContentProvider
      • searchResultChanged

        public void searchResultChanged​(org.eclipse.search.ui.SearchResultEvent e)
        Specified by:
        searchResultChanged in interface org.eclipse.search.ui.ISearchResultListener
        Overrides:
        searchResultChanged in class org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchResultContentProvider
      • descriptionsChanged

        public void descriptionsChanged​(org.eclipse.xtext.resource.IResourceDescription.Event event)
        Specified by:
        descriptionsChanged in interface org.eclipse.xtext.resource.IResourceDescription.Event.Listener
        Overrides:
        descriptionsChanged in class org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchResultContentProvider
      • addReference

        protected void addReference​(org.eclipse.xtext.resource.IReferenceDescription referenceDescription,
                                    boolean isUpdateViewer)
        Creates new nodes in tree viewer by IReferenceDescription.
        TODO: this method is copy of private method "addReference" of super class. When its accessibility will be changed we need to rewrite current method.
        Parameters:
        referenceDescription - actual IReferenceDescription for creating node of tree viewer
        isUpdateViewer - true if we need to update tree viewer, false otherwise
      • resourceNode

        protected org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchViewTreeNode resourceNode​(IReferenceFinderParticipant.IReferenceDescriptionFinderParticipant referenceDescription,
                                                                                                boolean isUpdateViewer)
        Creates new resource nodes in tree viewer by IReferenceDescription.
        TODO: this method is copy of private method "resourceNode" of super class. When its accessibility will be changed we need to rewrite current method.
        Parameters:
        referenceDescription - actual IReferenceDescription for creating node of tree viewer, can't be null
        isUpdateViewer - true if we need to update tree viewer, false otherwise
      • getRootNodes

        protected List<org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchViewTreeNode> getRootNodes()
        Special method for getting access to the private field "rootNodes" of super class. TODO: Rewrite method when field "rootNodes" will be accessible from super class api
        Returns:
        value of private field "rootNodes" of super class, can be null
      • setRootNodesValue

        protected void setRootNodesValue​(List<org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchViewTreeNode> value)
        Special method for changing value of the private field "rootNodes" of super class. TODO: Rewrite method when field "rootNodes" will be accessible from super class api
        Parameters:
        value - new value for private field "rootNodes" of super class, can be null