|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gef.commands.Command
org.wsmostudio.bpmo.ui.editor.command.GatewayCreateCommand
public class GatewayCreateCommand
A command to add a Shape to a ShapeDiagram. The command can be undone or redone.
| Constructor Summary | |
|---|---|
GatewayCreateCommand(GatewayNode newTask,
WorkflowEntitiesContainer host,
org.eclipse.draw2d.geometry.Rectangle bounds)
Create a command that will add a new Shape to a ShapesDiagram. |
|
| Method Summary | |
|---|---|
boolean |
canExecute()
Can execute if all the necessary information has been provided. |
void |
execute()
|
void |
redo()
|
void |
undo()
|
| 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 GatewayCreateCommand(GatewayNode newTask,
WorkflowEntitiesContainer host,
org.eclipse.draw2d.geometry.Rectangle bounds)
newShape - the new Shape that is to be addedparent - the ShapesDiagram that will hold the new elementbounds - the bounds of the new shape; the size can be (-1, -1) if not known
java.lang.IllegalArgumentException - if any parameter is null, or the request
does not provide a new Shape instance| Method Detail |
|---|
public boolean canExecute()
canExecute in class org.eclipse.gef.commands.CommandCommand.canExecute()public void execute()
execute in class org.eclipse.gef.commands.Commandpublic void redo()
redo in class org.eclipse.gef.commands.Commandpublic 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 | |||||||||