// Dialog schliessen
final boolean open = ((Boolean)getOpenFile().getValue()).booleanValue();
SETTINGS.setAttribute("open",open);
close();
final Exporter exporter = exp.exporter;
final IOFormat format = exp.format;
BackgroundTask t = new BackgroundTask() {
public void run(ProgressMonitor monitor) throws ApplicationException
{
try
{
// Der Exporter schliesst den OutputStream selbst
OutputStream os = new BufferedOutputStream(new FileOutputStream(file));
exporter.doExport(objects,format,os,monitor);
monitor.setPercentComplete(100);
monitor.setStatus(ProgressMonitor.STATUS_DONE);
GUI.getStatusBar().setSuccessText(i18n.tr("Daten exportiert nach {0}",s));
monitor.setStatusText(i18n.tr("Daten exportiert nach {0}",s));