Class MergeResolutionListenerRegistryListener
java.lang.Object
org.eclipse.emf.compare.rcp.extension.AbstractRegistryEventListener
org.eclipse.emf.compare.ide.ui.internal.mergeresolution.MergeResolutionListenerRegistryListener
- All Implemented Interfaces:
EventListener,org.eclipse.core.runtime.IRegistryEventListener
This class is used for information flow between
MergeResolutionListenerRegistryListener and
MergeResolutionListenerRegistry and managing the creation of IMergeResolutionListener
instances.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.compare.rcp.extension.AbstractRegistryEventListener
AbstractRegistryEventListener.Action -
Constructor Summary
ConstructorsConstructorDescriptionMergeResolutionListenerRegistryListener(String pluginID, String extensionPointID, org.eclipse.core.runtime.ILog log, MergeResolutionListenerRegistry registry) Initialize a registry event listener for our handlers. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddedValid(org.eclipse.core.runtime.IConfigurationElement element) Process the given element as the addition of a valid element extension.protected booleanremovedValid(org.eclipse.core.runtime.IConfigurationElement element) Process the given element as the removal of a valid element extension.protected booleanvalidateExtensionElement(org.eclipse.core.runtime.IConfigurationElement element) Validates if the given element is an element for the given extension and is well constructed.Methods inherited from class org.eclipse.emf.compare.rcp.extension.AbstractRegistryEventListener
added, added, log, log, log, logMissingAttribute, readElement, readRegistry, removed, removed
-
Constructor Details
-
MergeResolutionListenerRegistryListener
public MergeResolutionListenerRegistryListener(String pluginID, String extensionPointID, org.eclipse.core.runtime.ILog log, MergeResolutionListenerRegistry registry) Initialize a registry event listener for our handlers.- Parameters:
pluginID- ID of the plugin contributing the extension point to monitor.extensionPointID- Actual id of the extension point to monitor.log- Log in which errors/warning should be logged.registry- The actual store of handlers this registry will alter.
-
-
Method Details
-
validateExtensionElement
protected boolean validateExtensionElement(org.eclipse.core.runtime.IConfigurationElement element) Description copied from class:AbstractRegistryEventListenerValidates if the given element is an element for the given extension and is well constructed. Returns true if the element should be further parsed for addition or removal.- Specified by:
validateExtensionElementin classAbstractRegistryEventListener- Parameters:
element- the element to validate.- Returns:
- true if the element should be further parsed for addition or removal, else otherwise.
-
addedValid
protected boolean addedValid(org.eclipse.core.runtime.IConfigurationElement element) Description copied from class:AbstractRegistryEventListenerProcess the given element as the addition of a valid element extension.- Specified by:
addedValidin classAbstractRegistryEventListener- Parameters:
element- the element to be added.- Returns:
- true if the given element has been added and if its children should be processed, false otherwise.
-
removedValid
protected boolean removedValid(org.eclipse.core.runtime.IConfigurationElement element) Description copied from class:AbstractRegistryEventListenerProcess the given element as the removal of a valid element extension.- Specified by:
removedValidin classAbstractRegistryEventListener- Parameters:
element- the element to be removed.- Returns:
- true if the given element has been removed and if its children should be processed, false otherwise.
-