|
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.topcased.modeler.commands.AddPortToMultiPortCommand
public class AddPortToMultiPortCommand
Creation : 09 may 2005
Constructor Summary | |
---|---|
AddPortToMultiPortCommand(GraphNode parent,
GraphNode child)
Constructor |
Method Summary | |
---|---|
boolean |
canExecute()
|
void |
execute()
|
void |
redo()
Add a new DataPort object to the SynchronisationGate model object |
protected void |
redoModel()
Update the DI model |
void |
undo()
Remove the last added DataPort |
protected void |
undoModel()
Undo the DI model modifications |
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 AddPortToMultiPortCommand(GraphNode parent, GraphNode child)
parent
- the parentEditPart that will contain the PortEditPartchild
- the PortEditPart that is movedMethod Detail |
---|
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()
protected void redoModel()
public void undo()
undo
in class org.eclipse.gef.commands.Command
Command.undo()
protected void undoModel()
|
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.