Class DifferenceGroupManager
java.lang.Object
org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.groups.impl.DifferenceGroupManager
This manager can be used to modify EMF Compare UI behavior regarding groups.
This manager can override the rank of groups. For example, it can be used to define a default group that will be used by EMF Compare UI.
This manager can define a synchronization behavior between a user selection of group in EMF Compare UI and the default group that is used by EMF Compare UI.
-
Constructor Summary
ConstructorsConstructorDescriptionDifferenceGroupManager(IItemRegistry<IDifferenceGroupProvider.Descriptor> registry, org.eclipse.jface.preference.IPreferenceStore preferenceStore) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetCurrentGroupRanking(boolean isThreeWay) Gets the current group order.getDefaultRankingConfiguration(boolean isThreeWay) Gets the default groups order.voidsetCurrentGroupRanking(List<IItemDescriptor<IDifferenceGroupProvider.Descriptor>> descriptors, boolean isThreeWay) Sets the ranking of Difference group provider.
-
Constructor Details
-
DifferenceGroupManager
public DifferenceGroupManager(IItemRegistry<IDifferenceGroupProvider.Descriptor> registry, org.eclipse.jface.preference.IPreferenceStore preferenceStore) Constructor.- Parameters:
registry- Registry ofIDifferenceGroupProvider.Descriptor.preferenceStore- TheIPreferenceStoreholding the value for group preferences.
-
-
Method Details
-
getCurrentGroupRanking
public List<IItemDescriptor<IDifferenceGroupProvider.Descriptor>> getCurrentGroupRanking(boolean isThreeWay) Gets the current group order.- Parameters:
isThreeWay- True if three way comparison, false otherwise.- Returns:
- Ordered
ListofIDifferenceGroupProvider.Descriptor.
-
getDefaultRankingConfiguration
public List<IItemDescriptor<IDifferenceGroupProvider.Descriptor>> getDefaultRankingConfiguration(boolean isThreeWay) Gets the default groups order.- Parameters:
isThreeWay- True if three way comparison, false otherwise.- Returns:
- Ordered
ListofIDifferenceGroupProvider.Descriptor.
-
setCurrentGroupRanking
public void setCurrentGroupRanking(List<IItemDescriptor<IDifferenceGroupProvider.Descriptor>> descriptors, boolean isThreeWay) Sets the ranking of Difference group provider.- Parameters:
descriptors- An ordered list ofIItemDescriptor.isThreeWay- True if three way comparison.
-