Class ExportCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
org.eclipse.nebula.widgets.nattable.export.command.ExportCommand
- All Implemented Interfaces:
ILayerCommand
Command to trigger export functionality.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExportCommand(IConfigRegistry configRegistry, org.eclipse.swt.widgets.Shell shell) Creates a newExportCommand.ExportCommand(IConfigRegistry configRegistry, org.eclipse.swt.widgets.Shell shell, boolean executeSynchronously) Creates a newExportCommand.ExportCommand(IConfigRegistry configRegistry, org.eclipse.swt.widgets.Shell shell, boolean executeSynchronously, boolean useProgressDialog) Creates a newExportCommand.ExportCommand(IConfigRegistry configRegistry, org.eclipse.swt.widgets.Shell shell, boolean executeSynchronously, boolean useProgressDialog, ILayerExporter exporter) Creates a newExportCommand. -
Method Summary
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
cloneCommand, convertToTargetLayer
-
Constructor Details
-
ExportCommand
Creates a newExportCommand.- Parameters:
configRegistry- TheIConfigRegistrythat contains the necessary export configurations.shell- TheShellthat should be used to open sub-dialogs and perform export operations in a background thread. Can benullwhich definitely leads to synchronous execution but could cause errors in case sub-dialogs should be opened before exporting.
-
ExportCommand
public ExportCommand(IConfigRegistry configRegistry, org.eclipse.swt.widgets.Shell shell, boolean executeSynchronously) Creates a newExportCommand.- Parameters:
configRegistry- TheIConfigRegistrythat contains the necessary export configurations.shell- TheShellthat should be used to open sub-dialogs and perform export operations in a background thread. Can benullwhich definitely leads to synchronous execution but could cause errors in case sub-dialogs should be opened before exporting.executeSynchronously- Configure if the export should be performed synchronously even if aShellis set.- Since:
- 1.6
-
ExportCommand
public ExportCommand(IConfigRegistry configRegistry, org.eclipse.swt.widgets.Shell shell, boolean executeSynchronously, boolean useProgressDialog) Creates a newExportCommand.- Parameters:
configRegistry- TheIConfigRegistrythat contains the necessary export configurations.shell- TheShellthat should be used to open sub-dialogs and perform export operations in a background thread. Can benullwhich definitely leads to synchronous execution but could cause errors in case sub-dialogs should be opened before exporting.executeSynchronously- Configure if the export should be performed synchronously even if aShellis set.useProgressDialog- Configure whether the progress should be reported viaProgressMonitorDialog. If set tofalsea custom shell with aProgressBarwill be shown if the shell parameter is notnull.- Since:
- 2.3
-
ExportCommand
public ExportCommand(IConfigRegistry configRegistry, org.eclipse.swt.widgets.Shell shell, boolean executeSynchronously, boolean useProgressDialog, ILayerExporter exporter) Creates a newExportCommand.- Parameters:
configRegistry- TheIConfigRegistrythat contains the necessary export configurations.shell- TheShellthat should be used to open sub-dialogs and perform export operations in a background thread. Can benullwhich definitely leads to synchronous execution but could cause errors in case sub-dialogs should be opened before exporting.executeSynchronously- Configure if the export should be performed synchronously even if aShellis set.useProgressDialog- Configure whether the progress should be reported viaProgressMonitorDialog. If set tofalsea custom shell with aProgressBarwill be shown if the shell parameter is notnull.exporter- TheILayerExporterthat should be used. Can benull, which causes the usage of the exporter registered in theIConfigRegistry.- Since:
- 2.3
-
-
Method Details
-
getConfigRegistry
- Returns:
- The
IConfigRegistrythat contains the necessary export configurations.
-
getShell
public org.eclipse.swt.widgets.Shell getShell()- Returns:
- The
Shellthat should be used to open sub-dialogs and perform export operations in a background thread. Ornullif the export should be performed synchronously and no sub-dialogs are needed in the process (e.g. to select the export destination).
-
isExecuteSynchronously
public boolean isExecuteSynchronously()- Returns:
trueif the export should be performed synchronously even if aShellis set.- Since:
- 1.6
-
isUseProgressDialog
public boolean isUseProgressDialog()- Returns:
trueif the progress should be reported viaProgressMonitorDialog.- Since:
- 2.3
-
getExporter
- Returns:
- The
ILayerExporterthat should be used. Can benull, which causes the usage of the exporter registered in theIConfigRegistry. - Since:
- 2.3
-