|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCommand
com.pnp.xfeature.commands.RemoveConstraintCommand
public class RemoveConstraintCommand
The Command class used to remove a rootElement from a feature model diagram
| Constructor Summary | |
|---|---|
RemoveConstraintCommand(FeatureDiagramModel diagram,
FeatureNodeModel rootElement,
org.w3c.dom.Element constraint)
Creates command that removes a rootElement from its parent rootElement |
|
| Method Summary | |
|---|---|
void |
execute()
calls the removeNode() method of the FeatureDiagramModel class that saves the position of the rootElement and removes it from its parent rootElement and refresh canvas afterwards |
void |
redo()
calls execute() method |
void |
undo()
calls returnNode() method of FeatureDiagramModel class that inserts the rootElement to its original position in the DOM model and refresh canvas afterwards |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoveConstraintCommand(FeatureDiagramModel diagram,
FeatureNodeModel rootElement,
org.w3c.dom.Element constraint)
diagram - feature modelrootElement - rootElement to be removed| 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 | ||||||||