Class SaveKGraphHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
de.cau.cs.kieler.klighd.ui.internal.handlers.SaveKGraphHandler
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler,org.eclipse.core.commands.IHandler2
public class SaveKGraphHandler
extends org.eclipse.core.commands.AbstractHandler
Handler to store the view model KGraph (or a subgraph) of a KlighD view to a file. This class is
mainly intended to support debugging purposes.
For "chunky", we export 4 types of diagrams:
flat_ Every compound node with its children and none of the children being expanded
expanded_ Every compound node with all of its children being expanded
expanded_flat Every compound node with its children of size as if they were expanded but all
further children removed
inchierarchy_ Incrementally expanded diagrams, starting with the top-level compound node and
zero expanded children. Afterwards compound nodes are expanded one after another
in a breath-first order.
- Author:
- uru, nbw
-
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, removeListenerObject
-
Constructor Details
-
SaveKGraphHandler
public SaveKGraphHandler()
-
-
Method Details
-
execute
public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException Executes the save action with the map of parameter values by name.- Parameters:
event- An event containing all the information about the current state of the application; must not benull.- Returns:
- the result of the execution. Reserved for future use, must be
null. - Throws:
org.eclipse.core.commands.ExecutionException- if an exception occurred during execution.
-