de.cau.cs.kieler.core.model.xtend.m2m
Class XtendTransformationCommand
java.lang.Object
org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.transaction.RecordingCommand
de.cau.cs.kieler.core.model.xtend.m2m.XtendTransformationCommand
- All Implemented Interfaces:
- Command, ConditionalRedoCommand
public class XtendTransformationCommand
- extends RecordingCommand
A command executing an xtend transformation. To support undo functionality it's important that
this is a RecordingCommand. The result of the transformation is stored and can be retrieved after
execution.
- Rating

- (2011-02-14) uru
XtendTransformationCommand
public XtendTransformationCommand(org.eclipse.xtend.XtendFacade theXtendFacade,
TransformationDescriptor theDescriptor,
TransactionalEditingDomain editingDomain)
- Parameters:
theXtendFacade
- the facade used to execute the transformationtheDescriptor
- information about which transformation to executeeditingDomain
- TransactionalEditingDomain
on which the transformation takes place.
canExecute
public boolean canExecute()
-
- Specified by:
canExecute
in interface Command
- Overrides:
canExecute
in class AbstractCommand
doExecute
protected void doExecute()
- Specified by:
doExecute
in class RecordingCommand
getResult
public Collection<Object> getResult()
- Specified by:
getResult
in interface Command
- Overrides:
getResult
in class AbstractCommand
- Returns:
- the result of the execution as first element of a collection. In case the execution
has not been executed yet,
null
is returned.