|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gef.commands.Command
org.eclipse.gef.commands.CompoundCommand
org.topcased.modeler.commands.CompoundCommand
public class CompoundCommand
This command just act like the GEF CompoundCommand. The difference is that you can add already executed command, so they will not be executed a second time.
CompoundCommand| Constructor Summary | |
|---|---|
CompoundCommand()
Empty constructor |
|
CompoundCommand(java.lang.String label)
Empty constructor |
|
| Method Summary | |
|---|---|
void |
add(org.eclipse.gef.commands.Command command)
|
void |
addExecuted(org.eclipse.gef.commands.Command command)
Add an already executed command to the list of commands |
boolean |
canExecute()
|
void |
execute()
Only execute commands that were not executed yet |
| Methods inherited from class org.eclipse.gef.commands.CompoundCommand |
|---|
canUndo, dispose, getChildren, getCommands, getLabel, isEmpty, redo, size, undo, unwrap |
| Methods inherited from class org.eclipse.gef.commands.Command |
|---|
chain, getDebugLabel, setDebugLabel, setLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompoundCommand()
public CompoundCommand(java.lang.String label)
label - Command label| Method Detail |
|---|
public void add(org.eclipse.gef.commands.Command command)
add in class org.eclipse.gef.commands.CompoundCommandCompoundCommand.add(org.eclipse.gef.commands.Command)public void addExecuted(org.eclipse.gef.commands.Command command)
command - the executed commandpublic boolean canExecute()
canExecute in class org.eclipse.gef.commands.CompoundCommandCompoundCommand.canExecute()public void execute()
execute in class org.eclipse.gef.commands.CompoundCommandCompoundCommand.execute()
|
Modelers | |||||||||
| 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.