Class EditVqlPatternHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
be.kuleuven.cs.distrinet.sparta.analysis.handlers.EditVqlPatternHandler
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler,org.eclipse.core.commands.IHandler2
public class EditVqlPatternHandler
extends org.eclipse.core.commands.AbstractHandler
Opens the
VqlPatternEditDialog on the selected ThreatPattern and, on OK,
writes the edited pattern list back through the EditingDomain that owns the
pattern, so the change is undoable and marks the owner dirty.
The domain is resolved from the pattern itself rather than from the active editor: the command is offered on any popup (e.g. the Model Explorer, with no or an unrelated editor active), and catalogs opened in a Sirius session belong to that session's transactional domain, whose command stack wraps the edit in the required write transaction. Patterns with no owning domain are not edited, since a direct mutation would either fail outside a transaction or never be saved.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabledMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.commands.IHandler
getHandlerLabel
-
Constructor Details
-
EditVqlPatternHandler
public EditVqlPatternHandler()
-
-
Method Details
-
execute
-