|
||||||||||
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.ReconnectAssociationRoleCommand
public class ReconnectAssociationRoleCommand
Connects two ClassifierRoles via an AssociationRole.
Constructor Summary | |
---|---|
ReconnectAssociationRoleCommand(VOCLModel.AssociationRole associationrole,
boolean isMovingSource)
Constructor for the command class. |
Method Summary | |
---|---|
boolean |
canExecute()
True if the command could be executed, false otherwise. |
void |
execute()
Entry point for command execution. |
VOCLModel.AssociationRole |
getAssociationRole()
|
org.eclipse.swt.widgets.Shell |
getShell()
|
VOCLModel.ClassifierRole |
getSource()
|
VOCLModel.ClassifierRole |
getTarget()
|
void |
redo()
Redo command execution. |
void |
setAssociationRole(VOCLModel.AssociationRole newArc)
|
void |
setEdPart(VOCLAssociationRoleEditPart edPart)
|
void |
setIsMovingSource(boolean isMovingSource)
|
void |
setShell(org.eclipse.swt.widgets.Shell shell)
|
void |
setSource_old(VOCLModel.ClassifierRole oldSource)
|
void |
setSource(VOCLModel.ClassifierRole newSource)
|
void |
setTarget_old(VOCLModel.ClassifierRole oldTarget)
|
void |
setTarget(VOCLModel.ClassifierRole newTarget)
|
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 ReconnectAssociationRoleCommand(VOCLModel.AssociationRole associationrole, boolean isMovingSource)
Method Detail |
---|
public boolean canExecute()
canExecute
in class org.eclipse.gef.commands.Command
public void execute()
execute
in class org.eclipse.gef.commands.Command
public VOCLModel.ClassifierRole getSource()
public VOCLModel.AssociationRole getAssociationRole()
public VOCLModel.ClassifierRole getTarget()
public void redo()
redo
in class org.eclipse.gef.commands.Command
public org.eclipse.swt.widgets.Shell getShell()
public void setShell(org.eclipse.swt.widgets.Shell shell)
shell
- The shell to set.public void setSource(VOCLModel.ClassifierRole newSource)
public void setTarget(VOCLModel.ClassifierRole newTarget)
public void setAssociationRole(VOCLModel.AssociationRole newArc)
public void setSource_old(VOCLModel.ClassifierRole oldSource)
public void setTarget_old(VOCLModel.ClassifierRole oldTarget)
public void setIsMovingSource(boolean isMovingSource)
public void setEdPart(VOCLAssociationRoleEditPart edPart)
public void undo()
undo
in class org.eclipse.gef.commands.Command
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |