org.jupe.editors.classdiagram.model.commands
Class AtomicCreateCommand
java.lang.Object
org.eclipse.gef.commands.Command
org.jupe.editors.classdiagram.model.commands.AtomicCreateCommand
public class AtomicCreateCommand
- extends org.eclipse.gef.commands.Command
Command to create new "atomic" elements. These are elements that cannot have
connections and don't need specific layout contraints in their parent (e.g.
AttributeElement with ClassElement as parent).
- Author:
- Steffen Klüpfel, Michael Pradel
Methods inherited from class org.eclipse.gef.commands.Command |
canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtomicCreateCommand
public AtomicCreateCommand(java.lang.String elementVisibility)
canExecute
public boolean canExecute()
- Overrides:
canExecute
in class org.eclipse.gef.commands.Command
execute
public void execute()
- Overrides:
execute
in class org.eclipse.gef.commands.Command
redo
public void redo()
- Overrides:
redo
in class org.eclipse.gef.commands.Command
setChild
public void setChild(NodeModelElement subpart)
setParent
public void setParent(NodeModelElement newParent)
undo
public void undo()
- Overrides:
undo
in class org.eclipse.gef.commands.Command