Package jetbrains.mps.findUsages
Class FindUsagesManager
- java.lang.Object
 - 
- org.jetbrains.mps.openapi.module.FindUsagesFacade
 - 
- jetbrains.mps.findUsages.FindUsagesManager
 
 
 
- 
- All Implemented Interfaces:
 CoreComponent
public class FindUsagesManager extends FindUsagesFacade implements CoreComponent
 
- 
- 
Field Summary
- 
Fields inherited from class org.jetbrains.mps.openapi.module.FindUsagesFacade
INSTANCE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description FindUsagesManager() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddispose()voidfindInstances(SearchScope scope, Set<? extends SAbstractConcept> concepts, boolean exact, Consumer<SNode> consumer, ProgressMonitor monitor)Set<SNode>findInstances(SearchScope scope, Set<? extends SAbstractConcept> concepts, boolean exact, ProgressMonitor monitor)Finds instances of the provided concepts in the scope.voidfindModelUsages(SearchScope scope, Set<SModelReference> modelReferences, Consumer<SModel> consumer, ProgressMonitor monitor)Set<SModel>findModelUsages(SearchScope scope, Set<SModelReference> modelReferences, ProgressMonitor monitor)Finds models referencing the provided set of models in the scope.voidfindUsages(SearchScope scope, Set<SNode> nodes, Consumer<SReference> consumer, ProgressMonitor monitor)The methods below do exactly the same, only report their results not via the return but via the provided callbackconsumer.Set<SReference>findUsages(SearchScope scope, Set<SNode> nodes, ProgressMonitor monitor)Finds references to the provided nodes in the scope.static FindUsagesManagergetInstance()Deprecated.it'sCoreComponent, useComponentHost.findComponent(Class)to retrieve an instancevoidinit() 
 - 
 
- 
- 
Method Detail
- 
getInstance
@Deprecated public static FindUsagesManager getInstance()
Deprecated.it'sCoreComponent, useComponentHost.findComponent(Class)to retrieve an instance 
- 
findUsages
public Set<SReference> findUsages(@NotNull SearchScope scope, @NotNull Set<SNode> nodes, ProgressMonitor monitor)
Description copied from class:FindUsagesFacadeFinds references to the provided nodes in the scope.- Specified by:
 findUsagesin classFindUsagesFacade
 
- 
findInstances
public Set<SNode> findInstances(@NotNull SearchScope scope, @NotNull Set<? extends SAbstractConcept> concepts, boolean exact, ProgressMonitor monitor)
Description copied from class:FindUsagesFacadeFinds instances of the provided concepts in the scope.- Specified by:
 findInstancesin classFindUsagesFacade
 
- 
findModelUsages
public Set<SModel> findModelUsages(@NotNull SearchScope scope, @NotNull Set<SModelReference> modelReferences, ProgressMonitor monitor)
Description copied from class:FindUsagesFacadeFinds models referencing the provided set of models in the scope.- Specified by:
 findModelUsagesin classFindUsagesFacade
 
- 
findUsages
public void findUsages(@NotNull SearchScope scope, @NotNull Set<SNode> nodes, @NotNull Consumer<SReference> consumer, ProgressMonitor monitor)
Description copied from class:FindUsagesFacadeThe methods below do exactly the same, only report their results not via the return but via the provided callbackconsumer. They are to become abstract in the future releases- Overrides:
 findUsagesin classFindUsagesFacade
 
- 
findInstances
public void findInstances(@NotNull SearchScope scope, @NotNull Set<? extends SAbstractConcept> concepts, boolean exact, @NotNull Consumer<SNode> consumer, ProgressMonitor monitor)
- Overrides:
 findInstancesin classFindUsagesFacade
 
- 
findModelUsages
public void findModelUsages(@NotNull SearchScope scope, @NotNull Set<SModelReference> modelReferences, @NotNull Consumer<SModel> consumer, ProgressMonitor monitor)
- Overrides:
 findModelUsagesin classFindUsagesFacade
 
- 
init
public void init()
- Specified by:
 initin interfaceCoreComponent
 
- 
dispose
public void dispose()
- Specified by:
 disposein interfaceCoreComponent
 
 - 
 
 -