|
UML | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
org.topcased.modeler.uml.sequencediagram.commands.creation.MessageAndExecutionCreationCommand
public class MessageAndExecutionCreationCommand
Command to create a Message and an ExecutionOccurrence
Constructor Summary | |
---|---|
MessageAndExecutionCreationCommand(org.eclipse.gef.EditPartViewer viewer,
org.eclipse.draw2d.geometry.Point loc,
MessageEdgeCreationCommand messageCmd)
Constructor |
Method Summary | |
---|---|
boolean |
canExecute()
Only if the execution can be created |
void |
execute()
Execute the command to create the ExecutionSpecification and the Message |
void |
redo()
Redo the command to create the ExecutionSpecification and the Message |
protected void |
setupMessageCommand()
Set up the message command to target on the created Execution Occurrence |
void |
undo()
Undo the both command |
Methods inherited from class org.eclipse.gef.commands.Command |
---|
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 MessageAndExecutionCreationCommand(org.eclipse.gef.EditPartViewer viewer, org.eclipse.draw2d.geometry.Point loc, MessageEdgeCreationCommand messageCmd)
viewer
- the viewerloc
- the location of the cursormessageCmd
- the command of creation of the messageMethod Detail |
---|
protected void setupMessageCommand()
public boolean canExecute()
canExecute
in class org.eclipse.gef.commands.Command
Command.canExecute()
public void execute()
execute
in class org.eclipse.gef.commands.Command
Command.execute()
public void redo()
redo
in class org.eclipse.gef.commands.Command
Command.redo()
public void undo()
undo
in class org.eclipse.gef.commands.Command
Command.undo()
|
UML | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.