|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
vocleditor.commands.CreateAttributeCommand
public class CreateAttributeCommand
Constructor Summary | |
---|---|
CreateAttributeCommand()
The default constructor. |
Method Summary | |
---|---|
void |
execute()
Entry point for command execution. |
VOCLModel.ClassifierRole |
getParent()
Returns the parent classifier role. |
void |
redo()
Redo command execution. |
void |
setAttribute(VOCLModel.Attribute attribute)
Sets the attribute. |
void |
setCommandAttributes(java.lang.String name,
java.lang.String type,
java.lang.String value,
VOCLModel.VariableDeclaration variable)
Sets the command attributes. |
void |
setName(java.lang.String name)
Sets the attribute name. |
void |
setParent(VOCLModel.ClassifierRole newParent)
Sets the parent classifier role. |
void |
setType(java.lang.String type)
Sets the attribute type. |
void |
setValue(java.lang.String value)
Sets the attribute value. |
void |
setVariable(VOCLModel.VariableDeclaration variable)
Sets the attribute variable. |
void |
undo()
Undo command execution. |
Methods inherited from class org.eclipse.gef.commands.Command |
---|
canExecute, 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 |
---|
public CreateAttributeCommand()
Method Detail |
---|
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
public VOCLModel.ClassifierRole getParent()
public void setParent(VOCLModel.ClassifierRole newParent)
newParent
- the parent to setpublic void setAttribute(VOCLModel.Attribute attribute)
attribute
- the attribute to setpublic void setName(java.lang.String name)
name
- the attribute name to setpublic void setType(java.lang.String type)
type
- the attribute type to setpublic void setValue(java.lang.String value)
value
- the attribute value to setpublic void setVariable(VOCLModel.VariableDeclaration variable)
variable
- the attribute variable to setpublic void setCommandAttributes(java.lang.String name, java.lang.String type, java.lang.String value, VOCLModel.VariableDeclaration variable)
name
- the attribute nametype
- the attribute typevalue
- the attribute valuevariable
- the attribute variable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |