|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AbstractTransactionalCommand com.ibm.etools.systems.application.visual.editor.commands.SetConnectionRoutingCommand
public class SetConnectionRoutingCommand
Command that sets routing of connection editpart.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
SetConnectionRoutingCommand(ConnectionEditPart connectionEditPart,
Routing newRouting,
TransactionalEditingDomain domain,
String label,
List affectedFiles)
|
Method Summary | |
---|---|
boolean |
canExecute()
|
boolean |
canUndo()
|
protected CommandResult |
doExecuteWithResult(IProgressMonitor monitor,
IAdaptable info)
|
Routing |
getNewRouting()
Get old ruter |
Routing |
getOldRouting()
Get old ruter |
void |
redo()
Re-executes the Command. |
void |
undo()
Undoes the changes performed during execute() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
Constructor Detail |
---|
public SetConnectionRoutingCommand(ConnectionEditPart connectionEditPart, Routing newRouting, TransactionalEditingDomain domain, String label, List affectedFiles)
label
- Method Detail |
---|
public Routing getOldRouting()
public Routing getNewRouting()
public boolean canExecute()
true
if the command can be executedpublic boolean canUndo()
true
if the command can be undone. This method should only be
called after execute()
or redo()
has been called.public void undo()
execute()
. This method should only be
called after execute
has been called, and only when canUndo()
returns true
.
canUndo()
public void redo()
undo()
has been called.
protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
ExecutionException
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |