Class XLSXExportHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
be.kuleuven.cs.distrinet.sparta.analysis.handlers.AbstractAnalysisExportHandler
be.kuleuven.cs.distrinet.sparta.analysis.handlers.AbstractThreatTableExportHandler
be.kuleuven.cs.distrinet.sparta.analysis.handlers.XLSXExportHandler
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler,org.eclipse.core.commands.IHandler2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidWrite the threats tofile, usingThreatExportColumns.withMetadata().protected StringfileName()protected StringMethods inherited from class be.kuleuven.cs.distrinet.sparta.analysis.handlers.AbstractThreatTableExportHandler
executeMethods inherited from class be.kuleuven.cs.distrinet.sparta.analysis.handlers.AbstractAnalysisExportHandler
analysedProject, analysedThreats, checkResultsAvailableMethods 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
-
XLSXExportHandler
public XLSXExportHandler()
-
-
Method Details
-
fileName
- Specified by:
fileNamein classAbstractThreatTableExportHandler- Returns:
- the name of the file to create in the project root, e.g.
threats.csv
-
formatName
- Specified by:
formatNamein classAbstractThreatTableExportHandler- Returns:
- a short format label used in messages, e.g.
CSV
-
export
Description copied from class:AbstractThreatTableExportHandlerWrite the threats tofile, usingThreatExportColumns.withMetadata().- Specified by:
exportin classAbstractThreatTableExportHandler- Throws:
IOException
-