use of annis.gui.objects.ExportQuery in project ANNIS by korpling.
the class QueryController method executeExport.
public void executeExport(ExportPanel panel, EventBus eventBus) {
Future exportFuture = state.getExecutedTasks().get(QueryUIState.QueryType.EXPORT);
if (exportFuture != null && !exportFuture.isDone()) {
exportFuture.cancel(true);
}
ExportQuery query = getExportQuery();
addHistoryEntry(query);
ExporterPlugin exporterImpl = ui.getExporter(query.getExporter());
exportFuture = Background.call(new ExportBackgroundJob(query, exporterImpl, ui, eventBus, panel));
state.getExecutedTasks().put(QueryUIState.QueryType.EXPORT, exportFuture);
}
Aggregations