Class ExportCommand
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
-
- org.eclipse.nebula.widgets.nattable.export.command.ExportCommand
-
- All Implemented Interfaces:
ILayerCommand
public class ExportCommand extends AbstractContextFreeCommand
Command to trigger export functionality.- See Also:
ExportCommandHandler
-
-
Constructor Summary
Constructors Constructor Description ExportCommand(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
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IConfigRegistry
getConfigRegistry()
org.eclipse.swt.widgets.Shell
getShell()
boolean
isExecuteSynchronously()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
cloneCommand, convertToTargetLayer
-
-
-
-
Constructor Detail
-
ExportCommand
public ExportCommand(IConfigRegistry configRegistry, org.eclipse.swt.widgets.Shell shell)
Creates a newExportCommand
.- Parameters:
configRegistry
- TheIConfigRegistry
that contains the necessary export configurations.shell
- TheShell
that should be used to open sub-dialogs and perform export operations in a background thread. Can benull
which 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
- TheIConfigRegistry
that contains the necessary export configurations.shell
- TheShell
that should be used to open sub-dialogs and perform export operations in a background thread. Can benull
which 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 aShell
is set.- Since:
- 1.6
-
-
Method Detail
-
getConfigRegistry
public IConfigRegistry getConfigRegistry()
- Returns:
- The
IConfigRegistry
that contains the necessary export configurations.
-
getShell
public org.eclipse.swt.widgets.Shell getShell()
- Returns:
- The
Shell
that should be used to open sub-dialogs and perform export operations in a background thread. Ornull
if 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:
true
if the export should be performed synchronously even if aShell
is set.- Since:
- 1.6
-
-