|
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.pde.plugin.command.AbstractChangesCommand
org.eclipse.egf.pde.plugin.command.AbstractExtensionChangesCommand
public abstract class AbstractExtensionChangesCommand
Base class to implement a command that performs plug-in changes in extension part.
Changes can be an extension adding operation.
| Constructor Summary | |
|---|---|
AbstractExtensionChangesCommand()
|
|
| Method Summary | |
|---|---|
protected IPluginExtension |
createExtension()
Create extension for extension-point id returned by getExtensionPointId(). |
protected IPluginElement |
createExtensionElementChild(IPluginElement extension_p,
String elementChildNodeName_p,
String elementChildIdAttribute_p,
String elementChildIdAttributeValue_p)
Create an extension element child for given parameters. |
protected IPluginElement |
getElement(IPluginParent parent_p,
String elementChildNodeName_p,
String elementChildIdAttribute_p,
String elementChildIdAttributeValue_p,
boolean createIfMissing_p)
Get an element for given parameters. |
protected String |
getExtensionChildIdAttribute()
Get the id attribute of the children for the extension. |
protected abstract String |
getExtensionChildName()
Get the node name of the children for the extension. |
protected IPluginElement |
getExtensionElementFromUniqueExtension(String childElementId_p)
Get an extension element child for specified element id value. |
protected IPluginElement |
getExtensionElementFromUniqueExtension(String childElementId_p,
boolean createIfMissing_p)
Get an extension element child for specified element id value. |
protected IPluginElement |
getExtensionElementWithId(String elementIdValue_p)
Get a child for given id in extension matching getExtensionPointId(), getExtensionChildName() and
getExtensionChildIdAttribute(). |
protected IPluginElement[] |
getExtensionElementWithNodeName(String elementName_p,
boolean createIfMissing_p)
Get the extension element for given parameters. |
protected abstract String |
getExtensionPointId()
Get the extension point id. |
protected IExtensions |
getExtensions()
Get IExtensions instance from plug-in object. |
protected IPluginExtension[] |
getExtensions(String extensionPointId_p)
Returns the extensions matching the given extension point id. |
protected IPluginElement |
getFirstExtensionElement()
Get first extension element for given parameters. |
protected void |
removeExtension(String extensionChildIdValue_p)
Remove extension point according to the result of getExtensionPointId(). |
protected boolean |
removeExtensionElementChild(IPluginElement extension_p,
String elementChildIdAttribute_p,
String elementChildAttributeValue_p)
Remove a child from its parent extension for given parameters. |
protected void |
setDescription(IPluginElement parentElement_p,
String idAttributeValue_p,
String description_p)
Set the description node. |
protected IPluginElement |
setSingleChild(IPluginParent parentElement_p,
String childNodeName_p,
String childIdAttribute_p,
String childIdAttributeValue_p)
Set a single child in a parent element. |
| Methods inherited from class org.eclipse.egf.pde.plugin.command.AbstractChangesCommand |
|---|
execute, getPluginModelBase, setPluginModelBase |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractExtensionChangesCommand()
| Method Detail |
|---|
protected IPluginExtension createExtension()
getExtensionPointId().
protected void removeExtension(String extensionChildIdValue_p)
getExtensionPointId().
protected IPluginElement[] getExtensionElementWithNodeName(String elementName_p,
boolean createIfMissing_p)
elementName_p - name of element to create.createIfMissing_p - true creates extension if missing; false otherwise.
IPluginElement.protected IPluginElement getExtensionElementWithId(String elementIdValue_p)
getExtensionPointId(), getExtensionChildName() and
getExtensionChildIdAttribute().
elementIdValue_p -
protected IPluginElement getExtensionElementFromUniqueExtension(String childElementId_p)
getExtensionChildName(), getExtensionChildIdAttribute() are used to perform the lookup.
childElementId_p -
protected IPluginElement getExtensionElementFromUniqueExtension(String childElementId_p,
boolean createIfMissing_p)
getExtensionChildName(), getExtensionChildIdAttribute() are used to perform the lookup.
childElementId_p -
IPluginElement instance or null if not found.protected IPluginExtension[] getExtensions(String extensionPointId_p)
extensionPointId_p -
protected IPluginElement getElement(IPluginParent parent_p,
String elementChildNodeName_p,
String elementChildIdAttribute_p,
String elementChildIdAttributeValue_p,
boolean createIfMissing_p)
parent_p - elementChildNodeName_p - elementChildIdAttribute_p - elementChildIdAttributeValue_p - createIfMissing_p -
IPluginElement instance or null if not created and not found.protected IExtensions getExtensions()
IExtensions instance from plug-in object.
protected IPluginElement getFirstExtensionElement()
getExtensionPointId() and getExtensionChildName().
IPluginElement instance or null if not found.
protected IPluginElement createExtensionElementChild(IPluginElement extension_p,
String elementChildNodeName_p,
String elementChildIdAttribute_p,
String elementChildIdAttributeValue_p)
extension_p - the extension that hosts the created element child.elementChildNodeName_p - node name of the child element.elementChildIdAttribute_p - elementChildIdAttributeValue_p -
IPluginElement.
protected boolean removeExtensionElementChild(IPluginElement extension_p,
String elementChildIdAttribute_p,
String elementChildAttributeValue_p)
elementChildIdAttribute_p - elementChildAttributeValue_p -
protected IPluginElement setSingleChild(IPluginParent parentElement_p,
String childNodeName_p,
String childIdAttribute_p,
String childIdAttributeValue_p)
parentElement_p - childNodeName_p - childIdAttribute_p - childIdAttributeValue_p -
protected void setDescription(IPluginElement parentElement_p,
String idAttributeValue_p,
String description_p)
throws CoreException
parentElement_p -
CoreExceptionprotected abstract String getExtensionPointId()
protected abstract String getExtensionChildName()
protected String getExtensionChildIdAttribute()
|
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.