Package org.csstudio.opibuilder.commands
Class ReplaceWidgetCommand
java.lang.Object
org.eclipse.gef.commands.Command
org.csstudio.opibuilder.commands.ReplaceWidgetCommand
public class ReplaceWidgetCommand
extends org.eclipse.gef.commands.Command
The command to replace a widget to the target widget..
-
Constructor Summary
ConstructorDescriptionReplaceWidgetCommand
(AbstractContainerModel container, AbstractWidgetModel srcWidget, AbstractWidgetModel targetWidget) -
Method Summary
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canRedo, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel
-
Constructor Details
-
ReplaceWidgetCommand
public ReplaceWidgetCommand(AbstractContainerModel container, AbstractWidgetModel srcWidget, AbstractWidgetModel targetWidget)
-
-
Method Details
-
execute
public void execute()- Overrides:
execute
in classorg.eclipse.gef.commands.Command
-
redo
public void redo()- Overrides:
redo
in classorg.eclipse.gef.commands.Command
-
undo
public void undo()- Overrides:
undo
in classorg.eclipse.gef.commands.Command
-