EGF Engine
Release 0.1.0

org.eclipse.egf.model.edit.command.plugin.fci
Class AbstractFactoryComponentInvocationWrapperCommand

java.lang.Object
  extended by AbstractOverrideableCommand
      extended by org.eclipse.egf.model.edit.command.plugin.PluginChangeWrapperCommand
          extended by org.eclipse.egf.model.edit.command.plugin.fci.AbstractFactoryComponentInvocationWrapperCommand
Direct Known Subclasses:
AddFactoryComponentInvocationWrapperCommand, RemoveFactoryComponentInvocationWrapperCommand, SetFactoryComponentInvocationWrapperCommand

public abstract class AbstractFactoryComponentInvocationWrapperCommand
extends PluginChangeWrapperCommand

Base class to implement that wraps an factory component invocation modification in plug-in files.


Constructor Summary
protected AbstractFactoryComponentInvocationWrapperCommand(EditingDomain domain_p, EObject modelElement_p, EStructuralFeature feature_p, Object value_p)
          Constructor.
 
Method Summary
protected  void addFactoryComponentDependency(String fcIdDependency_p)
          Add a factory component dependency related to given factory component id.
 boolean doCanUndo()
           
protected  String getFactoryComponentDependencyPluginId(String fcIdDependency_p)
          Return the id of the plug-in that hosts given factory component id dependency.
protected  void removeFactoryComponentDependency(String fcIdDependency_p)
          Remove a factory component dependency related to given factory component id.
 
Methods inherited from class org.eclipse.egf.model.edit.command.plugin.PluginChangeWrapperCommand
doExecute, doRedo, doUndo, getCommandRunner, getExecutablePluginChangeCommand, getFeature, getMDSoFaPde, getModelElement, getPluginId, getRedoablePluginChangeCommand, getUndoablePluginChangeCommand, getValue, prepare, setPluginId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFactoryComponentInvocationWrapperCommand

protected AbstractFactoryComponentInvocationWrapperCommand(EditingDomain domain_p,
                                                           EObject modelElement_p,
                                                           EStructuralFeature feature_p,
                                                           Object value_p)
Constructor.

Parameters:
domain_p -
modelElement_p -
feature_p -
value_p -
Method Detail

removeFactoryComponentDependency

protected void removeFactoryComponentDependency(String fcIdDependency_p)
Remove a factory component dependency related to given factory component id.

Parameters:
fcIdDependency_p -

addFactoryComponentDependency

protected void addFactoryComponentDependency(String fcIdDependency_p)
Add a factory component dependency related to given factory component id.

Parameters:
fcIdDependency_p -

getFactoryComponentDependencyPluginId

protected String getFactoryComponentDependencyPluginId(String fcIdDependency_p)
Return the id of the plug-in that hosts given factory component id dependency.

Parameters:
fcIdDependency_p -
Returns:

doCanUndo

public boolean doCanUndo()
Overrides:
doCanUndo in class PluginChangeWrapperCommand
See Also:
PluginChangeWrapperCommand.doCanUndo()

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.