|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
be.ac.vub.cocompose.eclipse.commands.CreateCommand
Create command for CoCompose elements.
Constructor Summary | |
CreateCommand()
Creates a CreateCommand. |
Method Summary | |
protected String |
adaptId(String id)
Adapts the given id to be unique within the new namespace. |
protected String |
adaptName(String name)
Adapts the given name to be unique within the new namespace. |
void |
execute()
|
ModelElement |
getElement()
Gets the created element. |
int |
getIndex()
Gets the insertion index. |
Namespace |
getOwner()
Gets the owner element. |
Rectangle |
getPosition()
Gets the position for insertion. |
protected void |
primExecute()
Execute implementation. |
void |
redo()
|
void |
setElement(ModelElement element)
Sets the created element. |
void |
setIndex(int i)
Sets the insertion index. |
void |
setOwner(Namespace owner)
Sets the owner element. |
void |
setPosition(Rectangle position)
Sets the position for insertion. |
void |
undo()
|
Methods inherited from class org.eclipse.gef.commands.Command |
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CreateCommand()
Method Detail |
public void execute()
Command.execute()
public Namespace getOwner()
public void setOwner(Namespace owner)
owner
- - the owner element.public ModelElement getElement()
public void setElement(ModelElement element)
element
- - the created element.public Rectangle getPosition()
public void setPosition(Rectangle position)
position
- - the position data.public void redo()
Command.redo()
public void undo()
Command.undo()
protected void primExecute()
Command.execute()
protected String adaptId(String id)
id
- the id to adapt
protected String adaptName(String name)
name
- the name to adapt
public int getIndex()
public void setIndex(int i)
i
- the insertion index.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |