Class MergeResolutionListenerRegistry
- java.lang.Object
-
- org.eclipse.emf.compare.ide.ui.internal.mergeresolution.MergeResolutionListenerRegistry
-
public class MergeResolutionListenerRegistry extends Object
The registry managing the merge resolution extension point information.
-
-
Constructor Summary
Constructors Constructor Description MergeResolutionListenerRegistry()Constructs and initialized this registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProvider(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.MergeResolutionListenerDescriptorremoveProvider(String className)Removes theMergeResolutionListenerDescriptorand its managedIDependencyProvideridentified by the givenclassNamefrom this registry.
-
-
-
Method Detail
-
addProvider
public void addProvider(String className, MergeResolutionListenerDescriptor descriptor)
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
public MergeResolutionListenerDescriptor removeProvider(String className)
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
public void mergeResolutionCompleted(Comparison comparison)
Notifies all registered extension point clients of the completed merge resolution.- Parameters:
comparison- the comparison now resolved
-
-