EGF Engine
Release 0.1.0

org.eclipse.egf.model.edit.command.plugin.contract
Class AbstractContractWrapperCommand

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.contract.AbstractContractWrapperCommand
Direct Known Subclasses:
AddContractElementWrapperCommand, RemoveContractElementWrapperCommand, SetContractElementWrapperCommand

public abstract class AbstractContractWrapperCommand
extends PluginChangeWrapperCommand

Base class to implement a command that wraps a contract extension processing.


Constructor Summary
protected AbstractContractWrapperCommand(EditingDomain domain_p, EObject modelElement_p, EStructuralFeature feature_p, Object value_p)
          Constructor.
 
Method Summary
 boolean doCanUndo()
           
protected  String getContractId()
          Returns the contract id of model element object.
protected  List<IPluginChangesCommand> getExecutableCommandList(ContractElement contractElement_p)
           
protected  List<IPluginChangesCommand> handleContractElement(ContractElement contractElement_p)
           
protected  List<IPluginChangesCommand> handleContractElementReferences(ContractElement contractElement_p)
          Handle contract element references including delta between to 2 set operations.
 
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

AbstractContractWrapperCommand

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

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

getContractId

protected String getContractId()
Returns the contract id of model element object.

Returns:

getExecutableCommandList

protected List<IPluginChangesCommand> getExecutableCommandList(ContractElement contractElement_p)

handleContractElement

protected List<IPluginChangesCommand> handleContractElement(ContractElement contractElement_p)

handleContractElementReferences

protected List<IPluginChangesCommand> handleContractElementReferences(ContractElement contractElement_p)
Handle contract element references including delta between to 2 set operations.

Parameters:
contractElement_p -

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.