ConnectionHandler connectionHandler) {
boolean isSelection = instructions.getScope() == DataExportInstructions.Scope.SELECTION;
DataExportModel exportModel = new SortableTableExportModel(isSelection, table);
try {
DataExportProcessor processor = DataExportProcessor.getExportProcessor(instructions.getFormat());
processor.export(exportModel, instructions, connectionHandler);
DataExportInstructions.Destination destination = instructions.getDestination();
if (destination == DataExportInstructions.Destination.CLIPBOARD) {
Messages.showInfoMessage(
"Content exported to clipboard.",
Constants.DBN_TITLE_PREFIX + "Export info");