public class DisconnectLinkCmd extends Command
| Constructor and Description |
|---|
DisconnectLinkCmd(DiagramLink link,
boolean disconnectOrigin)
Initializes a new instance of the DisconnectLinkCmd class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(boolean undoEnabled)
Carries out the command action.
|
DiagramLink |
getLink()
Gets a reference to the modified link.
|
void |
redo()
This method is called by the
UndoManager when redoing actions. |
void |
undo()
This method is called by the
UndoManager when undoing actions. |
addSubCmd, adopt, getContext, getSubCommands, getTitle, isContainerOf, setTitlepublic DisconnectLinkCmd(DiagramLink link, boolean disconnectOrigin)
public void execute(boolean undoEnabled)
public void undo()
UndoManager when undoing actions.public void redo()
UndoManager when redoing actions.public DiagramLink getLink()