Package org.csstudio.opibuilder.commands
Class ChangeOrderCommand
java.lang.Object
org.eclipse.gef.commands.Command
org.csstudio.opibuilder.commands.ChangeOrderCommand
public class ChangeOrderCommand
extends org.eclipse.gef.commands.Command
The command to change the order of a child.
-
Constructor Summary
ConstructorDescriptionChangeOrderCommand
(int newIndex, AbstractContainerModel container, AbstractWidgetModel widget) -
Method Summary
Methods inherited from class org.eclipse.gef.commands.Command
canRedo, canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel
-
Constructor Details
-
ChangeOrderCommand
public ChangeOrderCommand(int newIndex, AbstractContainerModel container, AbstractWidgetModel widget)
-
-
Method Details
-
canExecute
public boolean canExecute()- Overrides:
canExecute
in classorg.eclipse.gef.commands.Command
-
execute
public void execute()- Overrides:
execute
in classorg.eclipse.gef.commands.Command
-
undo
public void undo()- Overrides:
undo
in classorg.eclipse.gef.commands.Command
-