|
||||||||||
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.EditAttributeCommand
public class EditAttributeCommand
Command class for edit the attribute properties.
Constructor Summary | |
---|---|
EditAttributeCommand()
The default constructor. |
Method Summary | |
---|---|
void |
execute()
Executes the command. |
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,
java.lang.String variableName)
Sets the command attributes. |
void |
setName(java.lang.String name)
Sets the name of the attribute. |
void |
setParent(VOCLModel.ClassifierRole newParent)
Sets the parent classifier role. |
void |
setType(java.lang.String type)
Sets the type of the attribute. |
void |
setValue(java.lang.String value)
Sets the value of the attribute. |
void |
setVariableName(java.lang.String variableName)
Sets the variable name. |
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 EditAttributeCommand()
Method Detail |
---|
public void execute()
execute
in class org.eclipse.gef.commands.Command
public void undo()
undo
in class org.eclipse.gef.commands.Command
public void redo()
redo
in class org.eclipse.gef.commands.Command
public void setAttribute(VOCLModel.Attribute attribute)
attribute
- the attributepublic void setParent(VOCLModel.ClassifierRole newParent)
newParent
- the parentpublic void setName(java.lang.String name)
name
- the namepublic void setType(java.lang.String type)
type
- the typepublic void setValue(java.lang.String value)
value
- the valuepublic void setVariableName(java.lang.String variableName)
variableName
- the variable namepublic void setCommandAttributes(java.lang.String name, java.lang.String type, java.lang.String value, java.lang.String variableName)
name
- the attribute nametype
- the attribute typevalue
- the attribute valuevariableName
- the attribute variable name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |