settings.setAttribute("lastdir",file.getParent());
// Dialog schliessen
close();
final Importer importer = imp.importer;
final IOFormat format = imp.format;
BackgroundTask t = new BackgroundTask() {
public void run(ProgressMonitor monitor) throws ApplicationException
{
try
{
InputStream is = new BufferedInputStream(new FileInputStream(file));
importer.doImport(context,format,is,monitor);
monitor.setPercentComplete(100);
monitor.setStatus(ProgressMonitor.STATUS_DONE);
GUI.getStatusBar().setSuccessText(i18n.tr("Daten importiert aus {0}",s));
GUI.getCurrentView().reload();
}