|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egf.common.helper.ExtensionPointHelper
public class ExtensionPointHelper
Field Summary | |
---|---|
static String |
ATT_CLASS
Define a constant for the attribute named class in ExtensionPoint tab of plug-in xml files. |
static String |
ATT_ID
Define a constant for the attribute named id in ExtensionPoint tab of plug-in xml files. |
static String |
ATT_NAME
Define a constant for the attribute named name in ExtensionPoint tab of plug-in xml files. |
static String |
ELEMENT_DESCRIPTION
Define a constant for the element named description in ExtensionPoint tab of plug-in xml files. |
Constructor Summary | |
---|---|
ExtensionPointHelper()
|
Method Summary | |
---|---|
static Object |
createExecutableExtension(String pluginId_p,
String extensionPointId_p,
String idValue_p)
Create an executable extension for given parameters. |
static Object |
createExecutableExtension(String pluginId_p,
String extensionPointId_p,
String attributeId_p,
String attributeValue_p)
Create an executable extension for a specified plugin's id & extension point id, matching an attribute's value. |
static Object |
createInstance(IConfigurationElement configurationElement_p,
String attributeName_p)
Create an object instance for specified parameters. |
static IConfigurationElement |
getConfigurationElement(String pluginId_p,
String extensionId_p,
String idValue_p)
Get the configuration element for specified parameters. |
static IConfigurationElement |
getConfigurationElement(String pluginId_p,
String extensionId_p,
String attName_p,
String attValue_p)
Get the configuration element for specified parameters. |
static IConfigurationElement[] |
getConfigurationElements(String pluginId_p,
String extensionPointId_p)
Get the configuration elements for a specified plugin id & extension point id. |
static IConfigurationElement[] |
getConfigurationElements(String pluginId_p,
String extensionPointId_p,
String extensionDeclaringPluginId_p)
Get the extensions for identified plug-in extension point coming from an identified plug-in. |
static String |
getExtensionPointId(String hostingPluginId_p,
String extensionPointId_p)
Return the fully qualified extension-point id from given parameters. |
static String |
getId(IConfigurationElement configurationElement_p)
Return the value of the "id" attribute for given configuration element. |
static boolean |
hasValue(IConfigurationElement configurationElement_p,
String attName_p,
String attValue_p)
Is given configuration element containing an attribute named attName_p with value set to given one ? |
static boolean |
isDeclaredBy(IConfigurationElement configurationElement_p,
String pluginId_p)
Is given configuration element declared by identified plug-in ? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ATT_CLASS
class
in ExtensionPoint tab of plug-in xml files.
public static final String ATT_NAME
name
in ExtensionPoint tab of plug-in xml files.
public static final String ATT_ID
id
in ExtensionPoint tab of plug-in xml files.
public static final String ELEMENT_DESCRIPTION
description
in ExtensionPoint tab of plug-in xml files.
Constructor Detail |
---|
public ExtensionPointHelper()
Method Detail |
---|
public static IConfigurationElement[] getConfigurationElements(String pluginId_p, String extensionPointId_p)
pluginId_p
- the identifier of the plugin.extensionPointId_p
- the simple identifier of the extension point.
IConfigurationElement
or an empty array if the extension point does not exist,has no extensions configured, or none of the
extensions contain configuration elements.public static IConfigurationElement[] getConfigurationElements(String pluginId_p, String extensionPointId_p, String extensionDeclaringPluginId_p)
pluginId_p
- The identifier of the plug-in declaring the extension point.extensionPointId_p
- The extension point id.extensionDeclaringPluginId_p
- The identifier of the plug-in potentially declaring extensions for this extension point.
IConfigurationElement
. Empty if no extension could be found with given criteria.public static boolean isDeclaredBy(IConfigurationElement configurationElement_p, String pluginId_p)
configurationElement_p
- pluginId_p
-
public static IConfigurationElement getConfigurationElement(String pluginId_p, String extensionId_p, String idValue_p)
pluginId_p
- the identifier of the plugin.extensionId_p
- the short identifier of the extension point.idValue_p
- the value of the 'id' attribute declared into the extension point.
IConfigurationElement
instance or null if the specified extension is not found.public static IConfigurationElement getConfigurationElement(String pluginId_p, String extensionId_p, String attName_p, String attValue_p)
pluginId_p
- the identifier of the plugin.extensionId_p
- the short identifier of the extension point.attName_p
- the attribute name.attValue_p
- the attribute value.
IConfigurationElement
instance or null if the specified extension is not found.public static boolean hasValue(IConfigurationElement configurationElement_p, String attName_p, String attValue_p)
attName_p
with value set to given one ?
configurationElement_p
- attName_p
- attValue_p
-
public static String getId(IConfigurationElement configurationElement_p)
configurationElement_p
-
public static Object createExecutableExtension(String pluginId_p, String extensionPointId_p, String attributeId_p, String attributeValue_p)
pluginId_p
- the identifier of the plugin.extensionPointId_p
- the simple identifier of the extension point.attributeId_p
- the identifier of the attribute used into the comparison. If null, matching is not performed.attributeValue_p
- the value of the attribute used for comparison matching. If null, matching is not performed.
ATT_CLASS
public static Object createExecutableExtension(String pluginId_p, String extensionPointId_p, String idValue_p)
pluginId_p
- the plug-in that exposes the extension point.extensionPointId_p
- the extension point containing an attribute 'class' to instantiate.idValue_p
- the extension id value (attribute 'id') that matches the extension point estensionPointId_p.public static Object createInstance(IConfigurationElement configurationElement_p, String attributeName_p)
configurationElement_p
- a configuration element loaded from an extension point.attributeName_p
- the attribute that hosts the java type.
public static String getExtensionPointId(String hostingPluginId_p, String extensionPointId_p)
hostingPluginId_p
- the id of the plug-in that defines the extension-point.extensionPointId_p
- the short id of the extension-point.
'plug-in id.'extension-point id'.
|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.