public class DifferenceGroupRegistryImpl extends Object implements IDifferenceGroupProvider.Descriptor.Registry
IDifferenceGroupProvider.Descriptor.Registry. This implementation allow user
to override ranking of each group using preferences.| Constructor and Description |
|---|
DifferenceGroupRegistryImpl(DifferenceGroupManager groupManager,
IItemRegistry<IDifferenceGroupProvider.Descriptor> registry)
Constructs the registry.
|
| Modifier and Type | Method and Description |
|---|---|
IDifferenceGroupProvider.Descriptor |
add(IDifferenceGroupProvider.Descriptor providerDescriptor,
String className)
Add to the registry the given
IDifferenceGroupProvider. |
void |
clear()
Clear the registry.
|
IDifferenceGroupProvider.Descriptor |
getDefaultGroupProvider(IComparisonScope scope,
Comparison comparison)
Returns the default group provider.
|
List<IDifferenceGroupProvider.Descriptor> |
getGroupProviders(IComparisonScope scope,
Comparison comparison)
Returns the list of
IDifferenceGroupProvider contained in the registry. |
IDifferenceGroupProvider.Descriptor |
remove(String className)
Remove from the registry the
IDifferenceGroupProvider designated by the given
String . |
public DifferenceGroupRegistryImpl(DifferenceGroupManager groupManager, IItemRegistry<IDifferenceGroupProvider.Descriptor> registry)
groupManager - DifferenceGroupManager use to handle groups.registry - Item registry where are stored all registered group.public List<IDifferenceGroupProvider.Descriptor> getGroupProviders(IComparisonScope scope, Comparison comparison)
IDifferenceGroupProvider contained in the registry.getGroupProviders in interface IDifferenceGroupProvider.Descriptor.Registryscope - The scope on which the group providers will be applied.comparison - The comparison which is to be displayed in the structural view.IDifferenceGroupProvider contained in the registry.IDifferenceGroupProvider.Descriptor.Registry.getGroupProviders(IComparisonScope,
Comparison)public IDifferenceGroupProvider.Descriptor getDefaultGroupProvider(IComparisonScope scope, Comparison comparison)
getDefaultGroupProvider in interface IDifferenceGroupProvider.Descriptor.Registryscope - The scope on which the group providers will be applied.comparison - The comparison which is to be displayed in the structural view.IDifferenceGroupProvider.Descriptor.Registry.getDefaultGroupProvider(org.eclipse.emf.compare.scope.IComparisonScope,
org.eclipse.emf.compare.Comparison)public IDifferenceGroupProvider.Descriptor add(IDifferenceGroupProvider.Descriptor providerDescriptor, String className)
IDifferenceGroupProvider.add in interface IDifferenceGroupProvider.Descriptor.RegistryproviderDescriptor - The given IDifferenceGroupProvider.className - The class name of the given provider.IDifferenceGroupProvider, or null if there was no entry in the registry for the
class name.(org.eclipse.emf.compare.rcp.ui.structuremergeviewer.groups.IDifferenceGroupProvider.Descriptor)public IDifferenceGroupProvider.Descriptor remove(String className)
IDifferenceGroupProvider designated by the given
String .remove in interface IDifferenceGroupProvider.Descriptor.RegistryclassName - The given String representing a IDifferenceGroupProvider.IDifferenceGroupProvider designated by the given String.IDifferenceGroupProvider.Descriptor.Registry.remove(java.lang.String)public void clear()
clear in interface IDifferenceGroupProvider.Descriptor.RegistryIDifferenceGroupProvider.Descriptor.Registry.clear()
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.