Class GefCommandWrapper
- java.lang.Object
-
- org.eclipse.gef.commands.Command
-
- org.eclipse.graphiti.ui.internal.command.GefCommandWrapper
-
public class GefCommandWrapper extends org.eclipse.gef.commands.Command
-
-
Constructor Summary
Constructors Constructor Description GefCommandWrapper(ICommand command, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanExecute()booleancanUndo()voidexecute()ICommandgetCommand()java.lang.StringgetLabel()voidredo()voidundo()
-
-
-
Constructor Detail
-
GefCommandWrapper
public GefCommandWrapper(ICommand command, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
-
-
Method Detail
-
canExecute
public boolean canExecute()
- Overrides:
canExecutein classorg.eclipse.gef.commands.Command
-
canUndo
public boolean canUndo()
- Overrides:
canUndoin classorg.eclipse.gef.commands.Command
-
execute
public void execute()
- Overrides:
executein classorg.eclipse.gef.commands.Command
-
getLabel
public java.lang.String getLabel()
- Overrides:
getLabelin classorg.eclipse.gef.commands.Command
-
undo
public void undo()
- Overrides:
undoin classorg.eclipse.gef.commands.Command
-
getCommand
public ICommand getCommand()
-
redo
public void redo()
- Overrides:
redoin classorg.eclipse.gef.commands.Command
-
-