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
ConstructorDescriptionInstantiate a command that can create a connection between two widgets. -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
execute()
void
setNewSource
(AbstractWidgetModel newSource) void
setNewSourceTerminal
(String newSourceTerminal) void
setNewTarget
(AbstractWidgetModel newTarget) void
setNewTargetTerminal
(String newTargetTerminal) void
undo()
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:
canExecute
in classorg.eclipse.gef.commands.Command
-
execute
public void execute()- Overrides:
execute
in classorg.eclipse.gef.commands.Command
-
setNewSource
-
setNewSourceTerminal
-
setNewTarget
-
setNewTargetTerminal
-
undo
public void undo()- Overrides:
undo
in classorg.eclipse.gef.commands.Command
-