|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
be.ac.vub.cocompose.eclipse.commands.ConnectionCommand
Connects two EclipseEclipseRelationElements with an EclipseEclipseRelationship.
Constructor Summary | |
ConnectionCommand()
Creates a ConnectionCommand. |
Method Summary | |
void |
execute()
|
Relationship |
getRelationship()
Gets the relationship. |
int |
getSourceIndex()
Gets the source participant relationship index. |
RelationElement |
getSourceParticipant()
Gets the source participant. |
int |
getTargetIndex()
Gets the target participant relationship index. |
RelationElement |
getTargetParticipant()
Gets the target participant. |
protected void |
primExecute()
Execute implementation. |
void |
redo()
|
void |
setRelationship(Relationship relationship)
Sets the relationship. |
void |
setSourceIndex(int sourceIndex)
Sets the source participant relationship index. |
void |
setSourceParticipant(RelationElement sourceParticipant)
Sets the source participant. |
void |
setTargetIndex(int targetIndex)
Sets the target participant relationship index. |
void |
setTargetParticipant(RelationElement targetParticipant)
Sets the target participant. |
void |
undo()
|
Methods inherited from class org.eclipse.gef.commands.Command |
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConnectionCommand()
Method Detail |
public void execute()
Command.execute()
public void redo()
Command.redo()
public void undo()
Command.undo()
public RelationElement getSourceParticipant()
public void setSourceParticipant(RelationElement sourceParticipant)
sourceParticipant
- - the source participant.public RelationElement getTargetParticipant()
public void setTargetParticipant(RelationElement targetParticipant)
targetParticipant
- - the target participant.public Relationship getRelationship()
public void setRelationship(Relationship relationship)
relationship
- - the relationship.public int getSourceIndex()
public void setSourceIndex(int sourceIndex)
sourceIndex
- - the source participant relationship index.public int getTargetIndex()
public void setTargetIndex(int targetIndex)
targetIndex
- - the target participant relationship index.protected void primExecute()
Command.execute()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |