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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProvider
(String className, MergeResolutionListenerDescriptor descriptor) Adds the givenMergeResolutionListenerDescriptor
to this registry, using the givenclassName
as the identifier.void
clear()
Clears out all registered listeners from this registry.void
mergeResolutionCompleted
(Comparison comparison) Notifies all registered extension point clients of the completed merge resolution.removeProvider
(String className) Removes theMergeResolutionListenerDescriptor
and its managedIDependencyProvider
identified by the givenclassName
from this registry.
-
Constructor Details
-
MergeResolutionListenerRegistry
public MergeResolutionListenerRegistry()Constructs and initialized this registry.
-
-
Method Details
-
addProvider
Adds the givenMergeResolutionListenerDescriptor
to this registry, using the givenclassName
as the identifier.- Parameters:
className
- The identifier for the givenMergeResolutionListenerDescriptor
.descriptor
- TheMergeResolutionListenerDescriptor
which is to be added to this registry.
-
removeProvider
Removes theMergeResolutionListenerDescriptor
and its managedIDependencyProvider
identified by the givenclassName
from 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
-