Class CompoundModelMinimizer
java.lang.Object
org.eclipse.emf.compare.ide.ui.logical.CompoundModelMinimizer
- All Implemented Interfaces:
IModelMinimizer
This class encapsulates a list of model minimizers and propagates any calls to each element in the list.
- Since:
- 4.4
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.compare.ide.ui.logical.IModelMinimizer
IModelMinimizer.Registry
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCompoundModelMinimizer
(List<IModelMinimizer> minimizers) Creates a new compound model minimizer with the given minimizers.CompoundModelMinimizer
(IModelMinimizer... minimizers) Creates a new compound model minimizer with the given minimizers. -
Method Summary
Modifier and TypeMethodDescriptionvoid
minimize
(org.eclipse.core.resources.IFile file, SynchronizationModel syncModel, org.eclipse.core.runtime.IProgressMonitor monitor) This will be called to reduce the number of resources in this model's traversals based on the given starting point of the left logical model.void
minimize
(SynchronizationModel syncModel, org.eclipse.core.runtime.IProgressMonitor monitor) This will be called to reduce the number of resources in this model's traversals.
-
Field Details
-
minimizers
The list of model minimizers.
-
-
Constructor Details
-
CompoundModelMinimizer
Creates a new compound model minimizer with the given minimizers.- Parameters:
minimizers
- model minimizers
-
CompoundModelMinimizer
Creates a new compound model minimizer with the given minimizers.- Parameters:
minimizers
- model minimizers
-
-
Method Details
-
minimize
public void minimize(SynchronizationModel syncModel, org.eclipse.core.runtime.IProgressMonitor monitor) This will be called to reduce the number of resources in this model's traversals. Specifically, this minimizers propagates the call to all encapsulated minimizers.- Specified by:
minimize
in interfaceIModelMinimizer
- Parameters:
syncModel
- The synchronization model to be minimized.monitor
- Monitor on which to report progress to the user.
-
minimize
public void minimize(org.eclipse.core.resources.IFile file, SynchronizationModel syncModel, org.eclipse.core.runtime.IProgressMonitor monitor) This will be called to reduce the number of resources in this model's traversals based on the given starting point of the left logical model. Specifically, this minimizers propagates the call to all encapsulated minimizers.- Specified by:
minimize
in interfaceIModelMinimizer
- Parameters:
file
- The file that has been used as the starting point to resolve the left logical model.syncModel
- The synchronization model to be minimized.monitor
- Monitor on which to report progress to the user.
-