final int width = data.width;
final int height = data.height;
image.dispose();
monitor.worked(1);
// ScannedMap anlegen
Folder folder = null;
if (_selection != null && _selection instanceof IStructuredSelection) {
final Object o = ((IStructuredSelection) _selection).getFirstElement();
if (o instanceof Folder)
folder = (Folder) o;
else if (o instanceof ScannedMap)
folder = ((ScannedMap) o).getFolder();
}
final ScannedMap map = new ScannedMap();
map.setName(mapName.length() == 0 ? f.getName() : mapName);
map.setFileName(f.getAbsolutePath());
map.setFolder(folder);
if (folder != null)
folder.addMap(map);
CalibratorPlugin.getModel().add(map);
monitor.worked(2);
// TODO ScannedMapView aktualisieren
monitor.worked(3);
// TODO Map �ffnen