public class MergerExtensionRegistryListener extends AbstractRegistryEventListener
AbstractRegistryEventListener.Action
Constructor and Description |
---|
MergerExtensionRegistryListener(String pluginID,
String extensionPointID,
org.eclipse.core.runtime.ILog log,
IMerger.Registry mergerRegistry)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
addedValid(org.eclipse.core.runtime.IConfigurationElement element)
Process the given element as the addition of a valid element extension.
|
protected boolean |
readElement(org.eclipse.core.runtime.IConfigurationElement element,
AbstractRegistryEventListener.Action b)
Reads the given
element . |
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.
|
added, added, log, log, log, logMissingAttribute, readRegistry, removed, removed
public MergerExtensionRegistryListener(String pluginID, String extensionPointID, org.eclipse.core.runtime.ILog log, IMerger.Registry mergerRegistry)
pluginID
- The plugin id.extensionPointID
- The extension point id.log
- The log in which to report failures.mergerRegistry
- The actual registry that will be populated by this listener.protected boolean readElement(org.eclipse.core.runtime.IConfigurationElement element, AbstractRegistryEventListener.Action b)
element
. This method can be call when the element is added or remove. The
action
reflect it. It returns true if the element is recognized as valid regarding the
monitored extension point. It will be call on sub elements recursively for all recognized ones.readElement
in class AbstractRegistryEventListener
element
- the element to be read.b
- is the element added or removed.org.eclipse.emf.compare.ide.utils.AbstractRegistryEventListener#readElement(org.eclipse.core.runtime.IConfigurationElement,
org.eclipse.emf.compare.ide.utils.AbstractRegistryEventListener.Action)
protected boolean validateExtensionElement(org.eclipse.core.runtime.IConfigurationElement element)
validateExtensionElement
in class AbstractRegistryEventListener
element
- the element to validate.AbstractRegistryEventListener.validateExtensionElement(org.eclipse.core.runtime.IConfigurationElement)
protected boolean addedValid(org.eclipse.core.runtime.IConfigurationElement element)
addedValid
in class AbstractRegistryEventListener
element
- the element to be added.AbstractRegistryEventListener.addedValid(org.eclipse.core.runtime.IConfigurationElement)
protected boolean removedValid(org.eclipse.core.runtime.IConfigurationElement element)
removedValid
in class AbstractRegistryEventListener
element
- the element to be removed.AbstractRegistryEventListener.removedValid(org.eclipse.core.runtime.IConfigurationElement)
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.