Ignore:
Timestamp:
2008-04-10T00:14:35+02:00 (17 years ago)
Author:
christofd
Message:

adopted to latest josm code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisibleAction.java

    r5669 r7317  
    101101            OsmDataLayer layer = new OsmDataLayer(dataSet, file.getName(), file);
    102102            Main.main.addLayer(layer);
    103         } else if (ExtensionFileFilter.filters[ExtensionFileFilter.CSV].acceptName(fn))
    104             JOptionPane.showMessageDialog(Main.parent, fn+": "+tr("CSV Data import for non-GPS data is not implemented yet."));
     103        }
    105104        else
    106105            JOptionPane.showMessageDialog(Main.parent, fn+": "+tr("Unknown file extension: {0}", fn.substring(file.getName().lastIndexOf('.')+1)));
     
    117116            }
    118117            r.data.storageFile = file;
    119             Main.main.addLayer(new GpxLayer(r.data, fn));
    120             Main.main.addLayer(new MarkerLayer(r.data, tr("Markers from {0}", fn), file));
     118            GpxLayer gpxLayer = new GpxLayer(r.data, fn);
     119            Main.main.addLayer(gpxLayer);
     120            Main.main.addLayer(new MarkerLayer(r.data, tr("Markers from {0}", fn), file, gpxLayer));
    121121
    122122        } else {
Note: See TracChangeset for help on using the changeset viewer.