public abstract class RegistryReader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RegistryReader.PluginClassDescriptor |
Modifier and Type | Field and Description |
---|---|
protected IExtensionRegistry |
pluginRegistry |
protected static java.lang.String |
TAG_DESCRIPTION |
Constructor and Description |
---|
RegistryReader(IExtensionRegistry pluginRegistry,
java.lang.String pluginID,
java.lang.String extensionPointID) |
Modifier and Type | Method and Description |
---|---|
protected void |
logError(IConfigurationElement element,
java.lang.String text)
Logs the error in the desktop log using the provided
text and the information in the configuration element.
|
protected void |
logMissingAttribute(IConfigurationElement element,
java.lang.String attributeName)
Logs a very common registry error when a required attribute is missing.
|
protected boolean |
readElement(IConfigurationElement element)
Implement this method to read element attributes.
|
protected boolean |
readElement(IConfigurationElement element,
boolean add)
Implement this method to read element attributes for the purpose of adding or removing their registrations.
|
void |
readRegistry()
Reads from the plugin registry and parses it.
|
protected static final java.lang.String TAG_DESCRIPTION
protected IExtensionRegistry pluginRegistry
public RegistryReader(IExtensionRegistry pluginRegistry, java.lang.String pluginID, java.lang.String extensionPointID)
protected boolean readElement(IConfigurationElement element)
readElement(IConfigurationElement, boolean)
instead.protected boolean readElement(IConfigurationElement element, boolean add)
public void readRegistry()
protected void logError(IConfigurationElement element, java.lang.String text)
protected void logMissingAttribute(IConfigurationElement element, java.lang.String attributeName)