Package org.csstudio.opibuilder.commands
Class ConnectionDeleteCommand
java.lang.Object
org.eclipse.gef.commands.Command
org.csstudio.opibuilder.commands.ConnectionDeleteCommand
public class ConnectionDeleteCommand
extends org.eclipse.gef.commands.Command
A command to disconnect (remove) a connection from its endpoints.
-
Constructor Summary
ConstructorDescriptionCreate a command that will disconnect a connection from its endpoints. -
Method Summary
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canRedo, canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel
-
Constructor Details
-
ConnectionDeleteCommand
Create a command that will disconnect a connection from its endpoints.- Parameters:
conn
- the connection model (non-null)- Throws:
IllegalArgumentException
- if conn is null
-
-
Method Details
-
execute
public void execute()- Overrides:
execute
in classorg.eclipse.gef.commands.Command
-
undo
public void undo()- Overrides:
undo
in classorg.eclipse.gef.commands.Command
-