|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCommand
com.pnp.xfeature.commands.AddCommand
public class AddCommand
A base class of all commands used to add a new XML elements to a feature model diagram or a global constraints file
| Constructor Summary | |
|---|---|
AddCommand(FeatureDiagramModel diagram,
FeatureNodeModel parent,
java.lang.String childNodeType,
int nodePosition)
Creates command that adds new (generic) element to the feature model |
|
| Method Summary | |
|---|---|
void |
execute()
This method is to be overridden in subclasses |
int |
getNodePosition()
getter method for nodePosition attribute |
void |
redo()
This method is to be overridden in subclasses |
void |
undo()
This method is to be overridden in subclasses |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AddCommand(FeatureDiagramModel diagram,
FeatureNodeModel parent,
java.lang.String childNodeType,
int nodePosition)
diagram - the feature modelparent - the parent nodechildNodeType - the type o node that is to be addednodePosition - position where the new element is to be inserted (among other siblings)| Method Detail |
|---|
public void execute()
org.eclipse.gef.commands.Command#execute()public void redo()
org.eclipse.gef.commands.Command#redo()public void undo()
org.eclipse.gef.commands.Command#undo()public int getNodePosition()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||