Package com.uppaal.model.core2.lsc
Class RemoveLscElementCommand
- java.lang.Object
-
- com.uppaal.model.core2.AbstractCommand
-
- com.uppaal.model.core2.lsc.RemoveLscElementCommand
-
- All Implemented Interfaces:
Command
public class RemoveLscElementCommand extends AbstractCommand
This is an attempt to decouple LSC-specific removal command features. TODO: FIXME: The proper refactoring would move most of this implementation into LSC elements themselves and make them canvas/view-independent(!).
-
-
Field Summary
-
Fields inherited from class com.uppaal.model.core2.AbstractCommand
version
-
-
Constructor Summary
Constructors Constructor Description RemoveLscElementCommand(Node node, ViewWorkAround view)
-
Method Summary
Modifier and Type Method Description voidexecute()ElementgetModifiedElement()voidundo()-
Methods inherited from class com.uppaal.model.core2.AbstractCommand
getVersion, setVersion
-
-
-
-
Constructor Detail
-
RemoveLscElementCommand
public RemoveLscElementCommand(Node node, ViewWorkAround view)
-
-
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.
-
-