Package org.csstudio.opibuilder.commands
Class ConnectionReconnectCommand
java.lang.Object
org.eclipse.gef.commands.Command
org.csstudio.opibuilder.commands.ConnectionReconnectCommand
public class ConnectionReconnectCommand
extends org.eclipse.gef.commands.Command
A command to reconnect a connection to a different start point or end point.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate a command that can create a connection between two widgets. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidexecute()voidsetNewSource(AbstractWidgetModel newSource) voidsetNewSourceTerminal(String newSourceTerminal) voidsetNewTarget(AbstractWidgetModel newTarget) voidsetNewTargetTerminal(String newTargetTerminal) voidundo()Methods inherited from class org.eclipse.gef.commands.Command
canRedo, canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel
-
Constructor Details
-
ConnectionReconnectCommand
Instantiate a command that can create a connection between two widgets.
-
-
Method Details
-
canExecute
public boolean canExecute()- Overrides:
canExecutein classorg.eclipse.gef.commands.Command
-
execute
public void execute()- Overrides:
executein classorg.eclipse.gef.commands.Command
-
setNewSource
-
setNewSourceTerminal
-
setNewTarget
-
setNewTargetTerminal
-
undo
public void undo()- Overrides:
undoin classorg.eclipse.gef.commands.Command
-