Class ContentMergeViewerCustomizationRegistry
- java.lang.Object
-
- org.eclipse.emf.compare.rcp.ui.internal.contentmergeviewer.customization.ContentMergeViewerCustomizationRegistry
-
public class ContentMergeViewerCustomizationRegistry extends Object
The registry responsible for managing the content merge viewer customizations.
-
-
Constructor Summary
Constructors Constructor Description ContentMergeViewerCustomizationRegistry()Constructs and initialized this registry.
-
Method Summary
-
-
-
Method Detail
-
addCustomization
public void addCustomization(String className, ContentMergeViewerCustomizationDescriptor<IMergeViewerItemProvider> descriptor)
Adds the givenContentMergeViewerCustomizationDescriptorto this registry, using the givenclassNameas the identifier.- Parameters:
className- The identifier for the givenContentMergeViewerCustomizationDescriptor.descriptor- TheContentMergeViewerCustomizationDescriptorwhich is to be added to this registry.
-
addTreeCustomization
public void addTreeCustomization(String className, ContentMergeViewerCustomizationDescriptor<IMergeViewerItemContentProvider> descriptor)
Adds the givenContentMergeViewerCustomizationDescriptorto this registry, using the givenclassNameas the identifier.- Parameters:
className- The identifier for the givenContentMergeViewerCustomizationDescriptor.descriptor- TheContentMergeViewerCustomizationDescriptorwhich is to be added to this registry.
-
removeDescriptor
public void removeDescriptor(String className)
Removes theContentMergeViewerCustomizationDescriptorand its managedIDependencyProvideridentified by the givenclassNamefrom this registry.- Parameters:
className- Identifier of the provider we are to remove from this registry.
-
clear
public void clear()
Clears out all registered listeners from this registry.
-
getBestFittingMergeViewerItemProvider
public IMergeViewerItemProvider getBestFittingMergeViewerItemProvider(Comparison comparison, Object object)
Returns the best fittingIMergeViewerItemProvider.- Parameters:
comparison- theComparisonis used to check the context.object- theObjectfor which theIMergeViewerItemProvideris responsible.- Returns:
- the determined
IMergeViewerItemProviderif one exists,nullotherwise.
-
getBestFittingMergeViewerItemContentProvider
public IMergeViewerItemContentProvider getBestFittingMergeViewerItemContentProvider(Comparison comparison, Object object)
Returns the best fittingIMergeViewerItemContentProvider.- Parameters:
comparison- theComparisonis used to check the context.object- theObjectfor which theIMergeViewerItemContentProvideris responsible.- Returns:
- the determined
IMergeViewerItemContentProviderif one exists,nullotherwise.
-
-