org.eclipse.egf.pde.internal.plugin.command.context
Class SetCtxtEltBasedOnKeyCmd
java.lang.Object
org.eclipse.egf.pde.plugin.command.AbstractChangesCommand
org.eclipse.egf.pde.plugin.command.AbstractExtensionChangesCommand
org.eclipse.egf.pde.internal.plugin.command.context.AbstractContextCommand
org.eclipse.egf.pde.internal.plugin.command.context.AbstractContextElementCommand
org.eclipse.egf.pde.internal.plugin.command.context.AbstractCtxtEltBaseOnKeyCmd
org.eclipse.egf.pde.internal.plugin.command.context.SetCtxtEltBasedOnKeyCmd
- All Implemented Interfaces:
- IPluginChangesCommand
public class SetCtxtEltBasedOnKeyCmd
- extends AbstractCtxtEltBaseOnKeyCmd
This commands creates or updates a contextElement based on a simple key in an extension matching context extension-point.
Method Summary |
void |
execute()
Performs changes on the underlying plug-in. |
protected void |
setValue(IPluginElement contextElement_p)
Set value child element. |
Methods inherited from class org.eclipse.egf.pde.plugin.command.AbstractExtensionChangesCommand |
createExtension, createExtensionElementChild, getElement, getExtensionChildIdAttribute, getExtensionElementFromUniqueExtension, getExtensionElementFromUniqueExtension, getExtensionElementWithId, getExtensionElementWithNodeName, getExtensions, getExtensions, getFirstExtensionElement, removeExtension, removeExtensionElementChild, setDescription, setSingleChild |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetCtxtEltBasedOnKeyCmd
public SetCtxtEltBasedOnKeyCmd(String contextId_p,
String contextElementId_p,
String keyValue_p,
String keyType_p,
String value_p)
- Parameters:
contextId_p
- id of the context extension used as parent.contextElementId_p
- id of the context element.keyValue_p
- key value to setkeyType_p
- key type value.value_p
- value set as stringValue or classValue.
execute
public void execute()
- Description copied from interface:
IPluginChangesCommand
- Performs changes on the underlying plug-in.
- Specified by:
execute
in interface IPluginChangesCommand
- Overrides:
execute
in class AbstractChangesCommand
- See Also:
AbstractChangesCommand.execute()
setValue
protected void setValue(IPluginElement contextElement_p)
- Set value child element.
- Overrides:
setValue
in class AbstractContextElementCommand
- Parameters:
contextElement_p
- value_p
- the value to set.
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.