Class CompoundModelMinimizer
java.lang.Object
org.eclipse.emf.compare.ide.ui.logical.CompoundModelMinimizer
- All Implemented Interfaces:
IModelMinimizer
public class CompoundModelMinimizer extends java.lang.Object implements 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
Fields Modifier and Type Field Description protected java.util.List<IModelMinimizer>minimizersThe list of model minimizers. -
Constructor Summary
Constructors Constructor Description CompoundModelMinimizer(java.util.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 Type Method Description voidminimize(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.voidminimize(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:
minimizein 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:
minimizein 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.
-