Class ExportJSONFormsHandler
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- org.eclipse.emf.ecp.emf2web.ui.handler.AbstractSchemaExportCommandHandler
-
- org.eclipse.emf.ecp.emf2web.ui.json.internal.handler.ExportJSONFormsHandler
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
public class ExportJSONFormsHandler extends AbstractSchemaExportCommandHandler
The handler responsible for exporting view models to JSONForms.
-
-
Constructor Summary
Constructors Constructor Description ExportJSONFormsHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
execute(org.eclipse.core.commands.ExecutionEvent event)
This implementation uses theAbstractSchemaExportCommandHandler.getViews(ExecutionEvent)
andAbstractSchemaExportCommandHandler.openWizard(Collection, ExecutionEvent, Shell)
methods to open an export wizard.protected GenerationController
getGenerationController()
Returns theGenerationController
which shall be used to generate the files.protected GenerationExporter
getGenerationExporter()
Returns theGenerationExporter
responsible for creating the files generated by theGenerationController
.protected java.util.Collection<VView>
getViews(org.eclipse.core.commands.ExecutionEvent event)
Returns the views which shall be exported.-
Methods inherited from class org.eclipse.emf.ecp.emf2web.ui.handler.AbstractSchemaExportCommandHandler
getLocationProposal, handleRuntimeException, openWizard
-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
-
-
-
Method Detail
-
execute
public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
Description copied from class:AbstractSchemaExportCommandHandler
This implementation uses theAbstractSchemaExportCommandHandler.getViews(ExecutionEvent)
andAbstractSchemaExportCommandHandler.openWizard(Collection, ExecutionEvent, Shell)
methods to open an export wizard.- Specified by:
execute
in interfaceorg.eclipse.core.commands.IHandler
- Overrides:
execute
in classAbstractSchemaExportCommandHandler
- Parameters:
event
-- Returns:
- Throws:
org.eclipse.core.commands.ExecutionException
-
getViews
protected java.util.Collection<VView> getViews(org.eclipse.core.commands.ExecutionEvent event)
Description copied from class:AbstractSchemaExportCommandHandler
Returns the views which shall be exported.- Specified by:
getViews
in classAbstractSchemaExportCommandHandler
- Parameters:
event
- TheExecutionEvent
which is given by theAbstractSchemaExportCommandHandler.execute(ExecutionEvent)
method.- Returns:
- The collection of views which shall be exported.
-
getGenerationController
protected GenerationController getGenerationController()
Description copied from class:AbstractSchemaExportCommandHandler
Returns theGenerationController
which shall be used to generate the files.- Specified by:
getGenerationController
in classAbstractSchemaExportCommandHandler
- Returns:
- The
GenerationController
which shall be used.
-
getGenerationExporter
protected GenerationExporter getGenerationExporter()
Description copied from class:AbstractSchemaExportCommandHandler
Returns theGenerationExporter
responsible for creating the files generated by theGenerationController
.- Specified by:
getGenerationExporter
in classAbstractSchemaExportCommandHandler
- Returns:
- The
GenerationExporter
which shall be used.
-
-