Class LoadOnDemandPolicyRegistryListener
java.lang.Object
org.eclipse.emf.compare.rcp.extension.AbstractRegistryEventListener
org.eclipse.emf.compare.rcp.internal.policy.LoadOnDemandPolicyRegistryListener
- All Implemented Interfaces:
EventListener
,org.eclipse.core.runtime.IRegistryEventListener
A listener for load on demand policy extension point.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.compare.rcp.extension.AbstractRegistryEventListener
AbstractRegistryEventListener.Action
-
Constructor Summary
ConstructorDescriptionLoadOnDemandPolicyRegistryListener
(ILoadOnDemandPolicy.Registry registry, String pluginID, String extensionPointID, org.eclipse.core.runtime.ILog log) Creates a new listener for the givenpluginID
andextensionPointID
. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
addedValid
(org.eclipse.core.runtime.IConfigurationElement element) Process the given element as the addition of a valid element extension.protected boolean
removedValid
(org.eclipse.core.runtime.IConfigurationElement element) Process the given element as the removal of a valid element extension.protected boolean
validateExtensionElement
(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
-
LoadOnDemandPolicyRegistryListener
public LoadOnDemandPolicyRegistryListener(ILoadOnDemandPolicy.Registry registry, String pluginID, String extensionPointID, org.eclipse.core.runtime.ILog log) Creates a new listener for the givenpluginID
andextensionPointID
.- Parameters:
registry
- the registry to which contributed policies will be added and removed.pluginID
- the plugin id of the registering extension point.extensionPointID
- the id of the extension point to listen to.log
- the log in which to report errors.
-
-
Method Details
-
validateExtensionElement
protected boolean validateExtensionElement(org.eclipse.core.runtime.IConfigurationElement element) Validates 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:
validateExtensionElement
in classAbstractRegistryEventListener
- Parameters:
element
- the element to validate.- Returns:
- true if the element should be further parsed for addition or removal, else otherwise.
- See Also:
-
addedValid
protected boolean addedValid(org.eclipse.core.runtime.IConfigurationElement element) Process the given element as the addition of a valid element extension.- Specified by:
addedValid
in 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.
- See Also:
-
removedValid
protected boolean removedValid(org.eclipse.core.runtime.IConfigurationElement element) Process the given element as the removal of a valid element extension.- Specified by:
removedValid
in 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.
- See Also:
-