|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCommand
com.pnp.xfeature.commands.AddConstraintElementCommand
public class AddConstraintElementCommand
The Command class used to add an element to existing global constraint
| Constructor Summary | |
|---|---|
AddConstraintElementCommand(FeatureDiagramModel diagram,
org.w3c.dom.Node parentNode,
org.w3c.dom.Node childElement,
int constraintType,
int constraintPathType)
Creates command that adds new propery set element to the feature model |
|
| Method Summary | |
|---|---|
void |
execute()
calls addConstraintElement() method of the FeatureDiagramModel that adds the new element to DOM model |
void |
redo()
calls parentNode.appendChild(element) or insertBefore() method to place the constraint to the right position in its parent |
void |
undo()
calls removeChild() method of the FeatureDiagramModel that adds the new element to DOM model |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AddConstraintElementCommand(FeatureDiagramModel diagram,
org.w3c.dom.Node parentNode,
org.w3c.dom.Node childElement,
int constraintType,
int constraintPathType)
diagram - the feature modelnode - the parent node| 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||