|
||||||||||
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.EditAssociationRoleCommand
public class EditAssociationRoleCommand
Edit association role properties.
Constructor Summary | |
---|---|
EditAssociationRoleCommand()
The default constructor. |
Method Summary | |
---|---|
boolean |
canExecute()
Checks whether source_new , source_old ,
target_new and target_old are not null. |
void |
execute()
Command execution - Swaps target and source if necessary |
void |
redo()
Redo command execution. |
void |
setAssociationRole(VOCLModel.AssociationRole associationrole)
|
void |
setCommandAttributes(VOCLModel.ClassifierRole source,
VOCLModel.ClassifierRole target,
java.lang.String name,
byte routingType)
Sets the command attributes. |
void |
setName(java.lang.String name)
Sets the association role name. |
void |
setSource(VOCLModel.ClassifierRole source)
Sets the source classifier role. |
void |
setTarget(VOCLModel.ClassifierRole target)
Sets the target classifier role. |
void |
undo()
Undo command execution. |
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 |
---|
public EditAssociationRoleCommand()
Method Detail |
---|
public boolean canExecute()
source_new
, source_old
,
target_new
and target_old
are not null.
canExecute
in class org.eclipse.gef.commands.Command
public void setAssociationRole(VOCLModel.AssociationRole associationrole)
associationrole
- The AssociationRole
to modify.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 setSource(VOCLModel.ClassifierRole source)
source
- the source classifier role to setpublic void setTarget(VOCLModel.ClassifierRole target)
target
- the target classifier role to setpublic void setName(java.lang.String name)
name
- the association role namepublic void setCommandAttributes(VOCLModel.ClassifierRole source, VOCLModel.ClassifierRole target, java.lang.String name, byte routingType)
source
- the source classifier roletarget
- the target classifier rolename
- the association role nameroutingType
- the routing type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |