Class ContentMergeViewerCustomizationRegistry
java.lang.Object
org.eclipse.emf.compare.rcp.ui.internal.contentmergeviewer.customization.ContentMergeViewerCustomizationRegistry
The registry responsible for managing the content merge viewer customizations.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs and initialized this registry. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomization(String className, ContentMergeViewerCustomizationDescriptor<IMergeViewerItemProvider> descriptor) Adds the givenContentMergeViewerCustomizationDescriptorto this registry, using the givenclassNameas the identifier.voidaddTreeCustomization(String className, ContentMergeViewerCustomizationDescriptor<IMergeViewerItemContentProvider> descriptor) Adds the givenContentMergeViewerCustomizationDescriptorto this registry, using the givenclassNameas the identifier.voidclear()Clears out all registered listeners from this registry.getBestFittingMergeViewerItemContentProvider(Comparison comparison, Object object) Returns the best fittingIMergeViewerItemContentProvider.getBestFittingMergeViewerItemProvider(Comparison comparison, Object object) Returns the best fittingIMergeViewerItemProvider.voidremoveDescriptor(String className) Removes theContentMergeViewerCustomizationDescriptorand its managedidentified by the giveninvalid reference
IDependencyProviderclassNamefrom this registry.
-
Constructor Details
-
ContentMergeViewerCustomizationRegistry
public ContentMergeViewerCustomizationRegistry()Constructs and initialized this registry.
-
-
Method Details
-
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
Removes theContentMergeViewerCustomizationDescriptorand its managedidentified by the giveninvalid reference
IDependencyProviderclassNamefrom 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.
-