org.jupe.editors.classdiagram.model.commands
Class AtomicCreateCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by 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

Constructor Summary
AtomicCreateCommand(java.lang.String elementVisibility)
           
 
Method Summary
 boolean canExecute()
           
 void execute()
           
 void redo()
           
 void setChild(NodeModelElement subpart)
           
 void setParent(NodeModelElement newParent)
           
 void undo()
           
 
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
 

Constructor Detail

AtomicCreateCommand

public AtomicCreateCommand(java.lang.String elementVisibility)
Method Detail

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