|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.gef.commands.Command edu.stanford.hci.dtools.statechart.model.commands.StateDeleteCommand
public class StateDeleteCommand
A command to remove a shape from its parent. The command can be undone or redone.
This software is distributed under the BSD License.
This code is partially based on code that is copyright (c) 2004 Elias Volanakis. See License.txt
Constructor Summary | |
---|---|
StateDeleteCommand(DiagramModel parent,
StateModel child)
Create a command that will remove the shape from its parent. |
Method Summary | |
---|---|
boolean |
canUndo()
|
void |
execute()
|
void |
redo()
|
void |
undo()
|
Methods inherited from class org.eclipse.gef.commands.Command |
---|
canExecute, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StateDeleteCommand(DiagramModel parent, StateModel child)
parent
- the DiagramModel containing the childchild
- the ShapeModel to remove
java.lang.IllegalArgumentException
- if any parameter is null
TODO: would be nice to use StateConnectionModels here...Method Detail |
---|
public boolean canUndo()
canUndo
in class org.eclipse.gef.commands.Command
public void execute()
execute
in class org.eclipse.gef.commands.Command
public void redo()
redo
in class org.eclipse.gef.commands.Command
public void undo()
undo
in class org.eclipse.gef.commands.Command
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |