Package com.uppaal.model.core2
Class RemoveElementCommand
- java.lang.Object
-
- com.uppaal.model.core2.AbstractCommand
-
- com.uppaal.model.core2.RemoveElementCommand
-
- All Implemented Interfaces:
Command
public class RemoveElementCommand extends AbstractCommand
The remove element command
-
-
Constructor Summary
Constructors Constructor Description RemoveElementCommand(Node node)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Element
getModifiedElement()
void
undo()
-
Methods inherited from class com.uppaal.model.core2.AbstractCommand
getVersion, merge, setVersion
-
-
-
-
Constructor Detail
-
RemoveElementCommand
public RemoveElementCommand(Node node)
Constructor- Parameters:
node
- - The node
-
-
Method Detail
-
execute
public void execute()
-
undo
public void undo()
-
getModifiedElement
public Element getModifiedElement()
- Returns:
- the modified element or its closest relative (sibling or parent) if the element is not displayed.
-
-