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 of
ITextSearchReferenceFinderSupplier 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
ConstructorsConstructorDescriptionBslTextSearchReferenceFinderSupplier(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
Modifier and TypeMethodDescriptioncreateReferences(IBmObject bmObject, Collection<TextSearchModelMatch> matches, String name) CreatesITextSearchReferenceResults for concreteIBmObjectif there is no IFile for it and collection ofMatchcorresponding to the this objectcreateReferences(org.eclipse.core.resources.IFile file, Collection<TextSearchFileMatch> matches, String name) CreatesITextSearchReferenceResults for concreteIFilein project and collection ofMatchcorresponding to the fileMethods inherited from class com._1c.g5.v8.dt.bsl.bm.ui.refactoring.BslTextSearchSupplier
filterMatcherForCommentAndStringLiteral, filterMatcherForSemanticObject, filterMatchesForFormalParam, filterMatchesFromDcs, filterSearchResult, getSearchStringsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.dt.search.core.ITextSearchSupplier
filterSearchResult, getSearchStrings
-
Constructor Details
-
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 benullfileSystemSupportProvider- actualIProjectFileSystemSupportProvider, cannot benullbslGrammar- actualBslGrammarAccess, cannot benullresourceSetProvider- specialIResourceSetProviderfor getting actial content of the bsl module, cannot benulldynamicFeatureAccessComputer- actualDynamicFeatureAccessComputer, cannot benullmanager- actualIBmModelManager, cannot benullpropertyManagerRegistry- actualIExternalPropertyManagerRegistry, cannot benullprojectManager- actualIV8ProjectManager, cannot benullscopeProvider- actualIGlobalScopeProviderfor getting actualPropertyscope for filtering matches corresponding to theDynamicFeatureAccessin Bsl module, cannot benull
-
-
Method Details
-
createReferences
public Collection<ITextSearchReferenceResult> createReferences(org.eclipse.core.resources.IFile file, Collection<TextSearchFileMatch> matches, String name) Description copied from interface:ITextSearchReferenceFinderSupplierCreatesITextSearchReferenceResults for concreteIFilein project and collection ofMatchcorresponding to the file- Specified by:
createReferencesin interfaceITextSearchReferenceFinderSupplier- Parameters:
file- concreteIFilein project containing search results, cannot benullmatches- collection ofMatchcorresponding to the file, cannot benullname- original name, cannot benull- Returns:
- created
ITextSearchReferenceResults for concreteIFilein project and collection ofMatchcorresponding to the file
-
createReferences
public Collection<ITextSearchReferenceResult> createReferences(IBmObject bmObject, Collection<TextSearchModelMatch> matches, String name) Description copied from interface:ITextSearchReferenceFinderSupplierCreatesITextSearchReferenceResults for concreteIBmObjectif there is no IFile for it and collection ofMatchcorresponding to the this object- Specified by:
createReferencesin interfaceITextSearchReferenceFinderSupplier- Parameters:
bmObject- concreteIBmObjectcontaining search results, cannot benullmatches- collection ofMatchcorresponding to the file, cannot benullname- original name, cannot benull- Returns:
- created
ITextSearchReferenceResults for concreteIBmObjectin project and collection ofMatchcorresponding to the object
-