T
- one descriptor typepublic class DescriptorRegistryEventListener<T> extends AbstractRegistryEventListener
AbstractRegistryEventListener.Action
Modifier and Type | Field and Description |
---|---|
static String |
DESCRITPION_DESCRIPTOR_ATTR
Description attribute of extension point.
|
static String |
ID_DESCRIPTOR_ATTR
Id attribute of the extension point.
|
static String |
IMPL_CLASS_DESCRIPTOR_ATTR
Engine implementation class attribute of extension point.
|
static String |
LABEL_DESCRIPTOR_ATTR
Label attribute of extension point.
|
static String |
RANK_DESCRIPTOR_ATTR
Rank attribute of extension point.
|
static String |
TAG_DESCRIPTOR
Descriptor tag of extension point.
|
Constructor and Description |
---|
DescriptorRegistryEventListener(String namespace,
String extensionPointID,
org.eclipse.core.runtime.ILog log,
IItemRegistry<T> registry)
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 |
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 static final String LABEL_DESCRIPTOR_ATTR
public static final String DESCRITPION_DESCRIPTOR_ATTR
public static final String IMPL_CLASS_DESCRIPTOR_ATTR
public static final String RANK_DESCRIPTOR_ATTR
public static final String ID_DESCRIPTOR_ATTR
public static final String TAG_DESCRIPTOR
public DescriptorRegistryEventListener(String namespace, String extensionPointID, org.eclipse.core.runtime.ILog log, IItemRegistry<T> registry)
namespace
- namespace of the extension pointextensionPointID
- id of the extension pointlog
- Loggerregistry
- IItemRegistry
where
IItemDescriptor
will be storedprotected 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.