|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.stp.core.internal.RegistryReader
public abstract class RegistryReader
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 | |
---|---|
static java.lang.String |
getClassValue(org.eclipse.core.runtime.IConfigurationElement configElement,
java.lang.String classAttributeName)
Utility for extracting the value of a class attribute or a nested class element that follows the pattern set forth by IExecutableExtension . |
static java.lang.String |
getDescription(org.eclipse.core.runtime.IConfigurationElement configElement)
Utility for extracting the description child of an element. |
static org.eclipse.core.runtime.IExtension[] |
orderExtensions(org.eclipse.core.runtime.IExtension[] extensions)
Apply a reproducable order to the list of extensions provided, such that the order will not change as extensions are added or removed. |
void |
readRegistry()
|
void |
readRegistry(org.eclipse.core.runtime.IExtensionRegistry registry,
java.lang.String pluginId,
java.lang.String extensionPoint)
Start the registry reading process using the supplied plugin ID and extension point. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void readRegistry()
public static org.eclipse.core.runtime.IExtension[] orderExtensions(org.eclipse.core.runtime.IExtension[] extensions)
extensions
- the extensions to order
public void readRegistry(org.eclipse.core.runtime.IExtensionRegistry registry, java.lang.String pluginId, java.lang.String extensionPoint)
registry
- the registry to read frompluginId
- the plugin id of the extenion pointextensionPoint
- the extension point idpublic static java.lang.String getDescription(org.eclipse.core.runtime.IConfigurationElement configElement)
configElement
- the element
public static java.lang.String getClassValue(org.eclipse.core.runtime.IConfigurationElement configElement, java.lang.String classAttributeName)
IExecutableExtension
.
configElement
- the elementclassAttributeName
- the name of the class attribute to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |