Class BslTextSearchReferenceFinderSupplier
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.bm.ui.refactoring.BslTextSearchSupplier
-
- com._1c.g5.v8.dt.bsl.bm.ui.editor.BslTextSearchReferenceFinderSupplier
-
- All Implemented Interfaces:
ITextSearchSupplier
,ITextSearchReferenceFinderSupplier
public class BslTextSearchReferenceFinderSupplier extends BslTextSearchSupplier implements ITextSearchReferenceFinderSupplier
Implementation ofITextSearchReferenceFinderSupplier
for collecting references to Bsl module elements from full text search results
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bsl.bm.ui.refactoring.BslTextSearchSupplier
BSL_EXT, resourceSetProvider
-
-
Constructor Summary
Constructors Constructor Description BslTextSearchReferenceFinderSupplier(org.eclipse.emf.ecore.EObject sourceObject, IProjectFileSystemSupportProvider fileSystemSupportProvider, BslGrammarAccess bslGrammar, org.eclipse.xtext.ui.refactoring.impl.RefactoringResourceSetProvider resourceSetProvider, DynamicFeatureAccessComputer dynamicFeatureAccessComputer, IBmModelManager manager, IExternalPropertyManagerRegistry propertyManagerRegistry, IV8ProjectManager projectManager, org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ITextSearchReferenceResult>
createReferences(IBmObject bmObject, Collection<TextSearchModelMatch> matches, String name)
CreatesITextSearchReferenceResult
s for concreteIBmObject
if there is no IFile for it and collection ofMatch
corresponding to the this objectCollection<ITextSearchReferenceResult>
createReferences(org.eclipse.core.resources.IFile file, Collection<TextSearchFileMatch> matches, String name)
CreatesITextSearchReferenceResult
s for concreteIFile
in project and collection ofMatch
corresponding to the file-
Methods inherited from class com._1c.g5.v8.dt.bsl.bm.ui.refactoring.BslTextSearchSupplier
filterMatcherForCommentAndStringLiteral, filterMatcherForSemanticObject, filterMatchesForFormalParam, filterMatchesFromDcs, filterSearchResult, getSearchStrings
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.search.core.ITextSearchSupplier
filterSearchResult, getSearchStrings
-
-
-
-
Constructor Detail
-
BslTextSearchReferenceFinderSupplier
@Inject public BslTextSearchReferenceFinderSupplier(org.eclipse.emf.ecore.EObject sourceObject, IProjectFileSystemSupportProvider fileSystemSupportProvider, BslGrammarAccess bslGrammar, org.eclipse.xtext.ui.refactoring.impl.RefactoringResourceSetProvider resourceSetProvider, DynamicFeatureAccessComputer dynamicFeatureAccessComputer, IBmModelManager manager, IExternalPropertyManagerRegistry propertyManagerRegistry, IV8ProjectManager projectManager, org.eclipse.xtext.scoping.IGlobalScopeProvider scopeProvider)
Constructor- Parameters:
sourceObject
- the object for finding references for it, cannot benull
fileSystemSupportProvider
- actualIProjectFileSystemSupportProvider
, cannot benull
bslGrammar
- actualBslGrammarAccess
, cannot benull
resourceSetProvider
- specialIResourceSetProvider
for getting actial content of the bsl module, cannot benull
dynamicFeatureAccessComputer
- actualDynamicFeatureAccessComputer
, cannot benull
manager
- actualIBmModelManager
, cannot benull
propertyManagerRegistry
- actualIExternalPropertyManagerRegistry
, cannot benull
projectManager
- actualIV8ProjectManager
, cannot benull
scopeProvider
- actualIGlobalScopeProvider
for getting actualProperty
scope for filtering matches corresponding to theDynamicFeatureAccess
in Bsl module, cannot benull
-
-
Method Detail
-
createReferences
public Collection<ITextSearchReferenceResult> createReferences(org.eclipse.core.resources.IFile file, Collection<TextSearchFileMatch> matches, String name)
Description copied from interface:ITextSearchReferenceFinderSupplier
CreatesITextSearchReferenceResult
s for concreteIFile
in project and collection ofMatch
corresponding to the file- Specified by:
createReferences
in interfaceITextSearchReferenceFinderSupplier
- Parameters:
file
- concreteIFile
in project containing search results, cannot benull
matches
- collection ofMatch
corresponding to the file, cannot benull
name
- original name, cannot benull
- Returns:
- created
ITextSearchReferenceResult
s for concreteIFile
in project and collection ofMatch
corresponding to the file
-
createReferences
public Collection<ITextSearchReferenceResult> createReferences(IBmObject bmObject, Collection<TextSearchModelMatch> matches, String name)
Description copied from interface:ITextSearchReferenceFinderSupplier
CreatesITextSearchReferenceResult
s for concreteIBmObject
if there is no IFile for it and collection ofMatch
corresponding to the this object- Specified by:
createReferences
in interfaceITextSearchReferenceFinderSupplier
- Parameters:
bmObject
- concreteIBmObject
containing search results, cannot benull
matches
- collection ofMatch
corresponding to the file, cannot benull
name
- original name, cannot benull
- Returns:
- created
ITextSearchReferenceResult
s for concreteIBmObject
in project and collection ofMatch
corresponding to the object
-
-