EGF Engine
Release 0.1.0

org.eclipse.egf.pde.internal.plugin.command.context
Class AbstractCtxtEltBaseOnKeyCmd

java.lang.Object
  extended by org.eclipse.egf.pde.plugin.command.AbstractChangesCommand
      extended by org.eclipse.egf.pde.plugin.command.AbstractExtensionChangesCommand
          extended by org.eclipse.egf.pde.internal.plugin.command.context.AbstractContextCommand
              extended by org.eclipse.egf.pde.internal.plugin.command.context.AbstractContextElementCommand
                  extended by org.eclipse.egf.pde.internal.plugin.command.context.AbstractCtxtEltBaseOnKeyCmd
All Implemented Interfaces:
IPluginChangesCommand
Direct Known Subclasses:
SetCtxtEltBasedOnKeyCmd

public abstract class AbstractCtxtEltBaseOnKeyCmd
extends AbstractContextElementCommand

Base class to implement commands that deal with context element based on a simple key in context extension-point.


Constructor Summary
protected AbstractCtxtEltBaseOnKeyCmd(String contextId_p, String contextElementId_p, String keyValue_p, String keyType_p, String value_p)
          Constructor.
 
Method Summary
protected  String getKeyIdAttribute()
          Get the key value.
protected  String getKeyIdAttributeValue()
          Get the key value.
protected  String getKeyType()
          Return the key type value
protected  void setKeyValue(IPluginElement contextElement_p, String keyNodeName_p, String keyIdAttribute_p, String keyIdAttributeValue_p)
          Set a simple key for given context element according to parameters values.
 
Methods inherited from class org.eclipse.egf.pde.internal.plugin.command.context.AbstractContextElementCommand
createContextValueElement, doCreateContextElement, getContextElementIdAttribute, getContextElementIdAttributeValue, getValue, setValue
 
Methods inherited from class org.eclipse.egf.pde.internal.plugin.command.context.AbstractContextCommand
getContextId, getExtensionChildName, getExtensionPointId
 
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 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

AbstractCtxtEltBaseOnKeyCmd

protected AbstractCtxtEltBaseOnKeyCmd(String contextId_p,
                                      String contextElementId_p,
                                      String keyValue_p,
                                      String keyType_p,
                                      String value_p)
Constructor.

Parameters:
contextId_p -
contextElementId_p -
keyValue_p -
keyType_p -
value_p -
Method Detail

getKeyIdAttributeValue

protected String getKeyIdAttributeValue()
Get the key value.

Returns:
the keyValue

getKeyIdAttribute

protected String getKeyIdAttribute()
Get the key value.

Returns:
the keyValue

setKeyValue

protected void setKeyValue(IPluginElement contextElement_p,
                           String keyNodeName_p,
                           String keyIdAttribute_p,
                           String keyIdAttributeValue_p)
Set a simple key for given context element according to parameters values.

Parameters:
contextElement_p -
keyNodeName_p -
keyIdAttribute_p -
keyIdAttributeValue_p -

getKeyType

protected String getKeyType()
Return the key type value

Returns:
the keyType as a fully qualified class name.

EGF Engine
Release 0.1.0

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.