|
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.AddGraphNodeCommand
public class AddGraphNodeCommand
Node creation
This command just add a graphNode into another. It also add the contained
element to the element of the parentNode graph node if needed.
creation : 30 nov. 2004
| Constructor Summary | |
|---|---|
AddGraphNodeCommand(GraphNode newParent,
GraphNode child,
java.lang.Object constraint)
Deprecated. Constructor |
|
| Method Summary | |
|---|---|
boolean |
canExecute()
Deprecated. Check if the object that we try to add to the model is not already set (because the cardinality is 1) |
void |
execute()
Deprecated. |
protected EObject |
getChildEObject()
Deprecated. Return the childNode EObject to create |
protected GraphNode |
getChildNode()
Deprecated. Return the childNode to create |
protected EObject |
getNewParentEObject()
Deprecated. Return the parentNode EObject that will contain the childNode soon |
protected EObject |
getOldParentEObject()
Deprecated. Return the parentNode EObject that originally contained the childNode |
void |
redo()
Deprecated. |
protected void |
redoModel()
Deprecated. Update the model after at the end of the redo() method. |
void |
undo()
Deprecated. |
protected void |
undoModel()
Deprecated. Update the model at the end of the undo() method. |
| 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 AddGraphNodeCommand(GraphNode newParent,
GraphNode child,
java.lang.Object constraint)
newParent - the parentNode nodechild - the child Node that is movedconstraint - the new constraint| Method Detail |
|---|
public boolean canExecute()
canExecute in class org.eclipse.gef.commands.CommandCommand.canExecute()public void execute()
execute in class org.eclipse.gef.commands.CommandCommand.execute()public void redo()
redo in class org.eclipse.gef.commands.CommandCommand.redo()protected void redoModel()
public void undo()
undo in class org.eclipse.gef.commands.CommandCommand.undo()protected void undoModel()
protected GraphNode getChildNode()
protected EObject getChildEObject()
protected EObject getOldParentEObject()
protected EObject getNewParentEObject()
|
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.