Interface FindUsagesParticipant
-
public interface FindUsagesParticipantEffective (usually index-based) implementation of find usages routines. Participants are invoked one by one, followed by the default (or dummy) participant. Processed models are reported to the processedConsumer to exclude them from the scope of subsequent participants. The default participant traverses unprocessed models recursively (which forces models to be loaded into memory).
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidfindInstances(Collection<SModel> scope, Set<SAbstractConcept> concepts, Consumer<SNode> consumer, Consumer<SModel> processedConsumer)Finds instances of the provided concepts in the scope.default voidfindInstances(Collection<SModel> scope, Set<SAbstractConcept> concepts, Consumer<SNode> consumer, Consumer<SModel> processedConsumer, ProgressMonitor monitor)Finds instances of the provided concepts in the scope.default voidfindModelUsages(Collection<SModel> scope, Set<SModelReference> modelReferences, Consumer<SModel> consumer, Consumer<SModel> processedConsumer)Finds models referencing the provided set of models in the scope.default voidfindModelUsages(Collection<SModel> scope, Set<SModelReference> modelReferences, Consumer<SModel> consumer, Consumer<SModel> processedConsumer, ProgressMonitor monitor)Finds models referencing the provided set of models in the scope.default voidfindUsages(Collection<SModel> scope, Set<SNode> nodes, Consumer<SReference> consumer, Consumer<SModel> processedConsumer)Finds references to the provided nodes in the scope.default voidfindUsages(Collection<SModel> scope, Set<SNode> nodes, Consumer<SReference> consumer, Consumer<SModel> processedConsumer, ProgressMonitor monitor)Finds references to the provided nodes in the scope.
-
-
-
Method Detail
-
findUsages
default void findUsages(Collection<SModel> scope, Set<SNode> nodes, Consumer<SReference> consumer, Consumer<SModel> processedConsumer)
Finds references to the provided nodes in the scope.
-
findInstances
default void findInstances(Collection<SModel> scope, Set<SAbstractConcept> concepts, Consumer<SNode> consumer, Consumer<SModel> processedConsumer)
Finds instances of the provided concepts in the scope.
-
findModelUsages
default void findModelUsages(Collection<SModel> scope, Set<SModelReference> modelReferences, Consumer<SModel> consumer, Consumer<SModel> processedConsumer)
Finds models referencing the provided set of models in the scope.
-
findUsages
default void findUsages(Collection<SModel> scope, Set<SNode> nodes, Consumer<SReference> consumer, Consumer<SModel> processedConsumer, @Nullable ProgressMonitor monitor)
Finds references to the provided nodes in the scope.
-
findInstances
default void findInstances(Collection<SModel> scope, Set<SAbstractConcept> concepts, Consumer<SNode> consumer, Consumer<SModel> processedConsumer, @Nullable ProgressMonitor monitor)
Finds instances of the provided concepts in the scope.
-
findModelUsages
default void findModelUsages(Collection<SModel> scope, Set<SModelReference> modelReferences, Consumer<SModel> consumer, Consumer<SModel> processedConsumer, @Nullable ProgressMonitor monitor)
Finds models referencing the provided set of models in the scope.
-
-