|
||||||||||
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.CreateClassifierRoleCommand
public class CreateClassifierRoleCommand
Command for creating a asscociation role.
Constructor Summary | |
---|---|
CreateClassifierRoleCommand()
The default constructor. |
Method Summary | |
---|---|
void |
execute()
Entry point for command execution. |
VOCLModel.ClassifierRole |
getClassifierRole()
Returns the classifier role. |
VOCLModel.NavExp |
getParent()
Returns the parent navigation expression. |
void |
redo()
Redo command execution. |
void |
setAttributes(java.util.List attributes)
Sets the list of attributes. |
void |
setClassifierRole(VOCLModel.ClassifierRole classifierrole)
Sets the classifier role. |
void |
setCommandAttributes(java.lang.String name,
java.lang.String type,
java.util.List attributes)
Sets the command attributes. |
void |
setLocation(org.eclipse.draw2d.geometry.Point loc)
Sets the location. |
void |
setName(java.lang.String name)
Sets the classifier role name. |
void |
setParent(VOCLModel.NavExp newParent)
Sets the parent navigation expression. |
void |
setType(java.lang.String type)
Sets the classifier role type |
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 CreateClassifierRoleCommand()
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 void setClassifierRole(VOCLModel.ClassifierRole classifierrole)
classifierrole
- the classifier role to setpublic VOCLModel.ClassifierRole getClassifierRole()
public void setLocation(org.eclipse.draw2d.geometry.Point loc)
loc
- the location to setpublic VOCLModel.NavExp getParent()
public void setParent(VOCLModel.NavExp newParent)
newParent
- the parent navigation expression to setpublic void setName(java.lang.String name)
name
- the classifier role namepublic void setType(java.lang.String type)
type
- the classifier role typepublic void setAttributes(java.util.List attributes)
attributes
- the list of attributes to setpublic void setCommandAttributes(java.lang.String name, java.lang.String type, java.util.List attributes)
name
- the classifier role nametype
- the classifier role typeattributes
- the list of attributes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |