Class MergeResolutionListenerRegistry
java.lang.Object
org.eclipse.emf.compare.ide.ui.internal.mergeresolution.MergeResolutionListenerRegistry
The registry managing the merge resolution extension point information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProvider(String className, MergeResolutionListenerDescriptor descriptor) Adds the givenMergeResolutionListenerDescriptorto this registry, using the givenclassNameas the identifier.voidclear()Clears out all registered listeners from this registry.voidmergeResolutionCompleted(Comparison comparison) Notifies all registered extension point clients of the completed merge resolution.removeProvider(String className) Removes theMergeResolutionListenerDescriptorand its managedIDependencyProvideridentified by the givenclassNamefrom this registry.
-
Constructor Details
-
MergeResolutionListenerRegistry
public MergeResolutionListenerRegistry()Constructs and initialized this registry.
-
-
Method Details
-
addProvider
Adds the givenMergeResolutionListenerDescriptorto this registry, using the givenclassNameas the identifier.- Parameters:
className- The identifier for the givenMergeResolutionListenerDescriptor.descriptor- TheMergeResolutionListenerDescriptorwhich is to be added to this registry.
-
removeProvider
Removes theMergeResolutionListenerDescriptorand its managedIDependencyProvideridentified by the givenclassNamefrom this registry.- Parameters:
className- Identifier of the provider we are to remove from this registry.- Returns:
- The removed
MergeResolutionListenerDescriptor, if any.
-
clear
public void clear()Clears out all registered listeners from this registry. -
mergeResolutionCompleted
Notifies all registered extension point clients of the completed merge resolution.- Parameters:
comparison- the comparison now resolved
-