| java.lang.Object org.eclipse.ui.internal.cheatsheets.registry.RegistryReader
All known Subclasses: org.eclipse.ui.internal.cheatsheets.registry.CheatSheetRegistryReader,
RegistryReader | abstract public class RegistryReader (Code) | | Template implementation of a registry reader that creates objects
representing registry contents. Typically, an extension
contains one element, but this reader handles multiple
elements per extension.
To start reading the extensions from the registry for an
extension point, call the method readRegistry .
To read children of an IConfigurationElement, call the
method readElementChildren from your implementation
of the method readElement , as it will not be
done by default.
|
Method Summary | |
String | getDescription(IConfigurationElement config) This method extracts description as a subelement of
the given element. | void | logMissingAttribute(IConfigurationElement element, String attributeName) Logs a very common registry error when a required attribute is missing. | abstract boolean | readElement(IConfigurationElement element) Implement this method to read element's attributes. | void | readElementChildren(IConfigurationElement element) Read the element's children. | void | readRegistry(IExtensionRegistry registry, String pluginId, String extensionPoint) Start the registry reading process using the
supplied plugin ID and extension point. |
TAG_DESCRIPTION | final protected static String TAG_DESCRIPTION(Code) | | |
RegistryReader | RegistryReader()(Code) | | The constructor.
|
getDescription | String getDescription(IConfigurationElement config)(Code) | | This method extracts description as a subelement of
the given element.
description string if defined, or empty stringif not. |
logMissingAttribute | void logMissingAttribute(IConfigurationElement element, String attributeName)(Code) | | Logs a very common registry error when a required attribute is missing.
|
readElement | abstract boolean readElement(IConfigurationElement element)(Code) | | Implement this method to read element's attributes.
If children should also be read, then implementor
is responsible for calling readElementChildren .
Implementor is also responsible for logging missing
attributes.
true if element was recognized, false if not. |
readElementChildren | void readElementChildren(IConfigurationElement element)(Code) | | Read the element's children. This is called by
the subclass' readElement method when it wants
to read the children of the element.
|
readRegistry | void readRegistry(IExtensionRegistry registry, String pluginId, String extensionPoint)(Code) | | Start the registry reading process using the
supplied plugin ID and extension point.
|
|
|