public class ContentMergeViewerCustomizationRegistryListener extends AbstractRegistryEventListener
AbstractRegistryEventListener.Action
Constructor and Description |
---|
ContentMergeViewerCustomizationRegistryListener(String pluginID,
String extensionPointID,
org.eclipse.core.runtime.ILog log,
ContentMergeViewerCustomizationRegistry contentMergeViewerCustomizationRegistry)
Initialize a registry event listener for our handlers.
|
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 String |
getAttribute(org.eclipse.core.runtime.IConfigurationElement element,
String attributeName,
String defaultResult)
Returns the attribute with the
attributeName from 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, readElement, readRegistry, removed, removed
public ContentMergeViewerCustomizationRegistryListener(String pluginID, String extensionPointID, org.eclipse.core.runtime.ILog log, ContentMergeViewerCustomizationRegistry contentMergeViewerCustomizationRegistry)
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.contentMergeViewerCustomizationRegistry
- The actual store of handlers this registry will alter.protected boolean addedValid(org.eclipse.core.runtime.IConfigurationElement element)
AbstractRegistryEventListener
addedValid
in class AbstractRegistryEventListener
element
- the element to be added.protected String getAttribute(org.eclipse.core.runtime.IConfigurationElement element, String attributeName, String defaultResult)
attributeName
from the given element
.element
- the IConfigurationElement
.attributeName
- the name of the attribute which's value is to be determined.defaultResult
- the result of this method if the attribute does not exist.defaultResult
otherwise.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)
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)
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.