public class DifferenceGroupManager extends Object
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 and Description |
|---|
DifferenceGroupManager(IItemRegistry<IDifferenceGroupProvider.Descriptor> registry,
org.eclipse.jface.preference.IPreferenceStore preferenceStore)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<IItemDescriptor<IDifferenceGroupProvider.Descriptor>> |
getCurrentGroupRanking(boolean isThreeWay)
Gets the current group order.
|
List<IItemDescriptor<IDifferenceGroupProvider.Descriptor>> |
getDefaultRankingConfiguration(boolean isThreeWay)
Gets the default groups order.
|
void |
setCurrentGroupRanking(List<IItemDescriptor<IDifferenceGroupProvider.Descriptor>> descriptors,
boolean isThreeWay)
Sets the ranking of Difference group provider.
|
public DifferenceGroupManager(IItemRegistry<IDifferenceGroupProvider.Descriptor> registry, org.eclipse.jface.preference.IPreferenceStore preferenceStore)
registry - Registry of IDifferenceGroupProvider.Descriptor.preferenceStore - The IPreferenceStore holding the value for group preferences.public List<IItemDescriptor<IDifferenceGroupProvider.Descriptor>> getCurrentGroupRanking(boolean isThreeWay)
isThreeWay - True if three way comparison, false otherwise.List of IDifferenceGroupProvider.Descriptor.public List<IItemDescriptor<IDifferenceGroupProvider.Descriptor>> getDefaultRankingConfiguration(boolean isThreeWay)
isThreeWay - True if three way comparison, false otherwise.List of IDifferenceGroupProvider.Descriptor.public void setCurrentGroupRanking(List<IItemDescriptor<IDifferenceGroupProvider.Descriptor>> descriptors, boolean isThreeWay)
descriptors - An ordered list of IItemDescriptor.isThreeWay - True if three way comparison.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.