Class TextSearchReferenceFinder


  • public class TextSearchReferenceFinder
    extends Object
    Special reference finder. It contains logic for creating references by results of full text search for source element. Usually, users should not override this class - all special logic for references finder should be implement in ITextSearchReferenceFinderSupplier
    See Also:
    TextSearchReferenceFinderFactory
    • Constructor Detail

      • TextSearchReferenceFinder

        public TextSearchReferenceFinder()
    • Method Detail

      • initialize

        public void initialize​(String name,
                               org.eclipse.emf.ecore.EObject source,
                               ITextSearchReferenceFinderSupplier referenceFinderSupplier)
        Constructor
        Parameters:
        name - old name of the renaming element, cannot be null
        source - actual renaming object, cannot be null
        refactoringSupplier - special ITextSearchReferenceFinderSupplier for renaming object, cannot be null
      • findReferences

        public Collection<ITextSearchReferenceResult> findReferences​(TextSearchScopeSettings searchScopeSettings,
                                                                     org.eclipse.core.runtime.IProgressMonitor pm)
        Creates references description by results of full text search for source element
        Parameters:
        searchScopeSettings - the search scope settings instance, cannot be null
        pm - the progress monitor, cannot be null
        Returns:
        created references description by results of full text search for source element, never null
      • findReferences

        public Collection<ITextSearchReferenceResult> findReferences​(org.eclipse.core.resources.IProject initialProject,
                                                                     IV8ProjectManager projectManager,
                                                                     org.eclipse.core.runtime.IProgressMonitor pm)
        Creates references description by results of full text search for source element
        Parameters:
        initialProject - initial IProject for find references, can be null if there is no initial project
        projectManager - actual IV8ProjectManager, cannot be null
        pm - the progress monitor, cannot be null
        Returns:
        created references description by results of full text search for source element, never null