Changeset 584 in josm


Ignore:
Timestamp:
2008-03-16T01:56:48+01:00 (16 years ago)
Author:
framm
Message:
  • be honest about the fact that we don't do CSV anymore. closes #641.
Location:
trunk/src/org/openstreetmap/josm
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ExtensionFileFilter.java

    r298 r584  
    2121        public static final int OSM = 0;
    2222        public static final int GPX = 1;
    23         public static final int CSV = 2;
    2423       
    2524        public static ExtensionFileFilter[] filters = {
    2625                new ExtensionFileFilter("osm,xml", "osm", tr("OSM Server Files (.osm .xml)")),
    2726                new ExtensionFileFilter("gpx,gpx.gz", "gpx", tr("GPX Files (.gpx .gpx.gz)")),
    28                 new ExtensionFileFilter("csv,txt", "csv", tr("CSV Files (.csv .txt)")),
    2927        };
    3028
  • trunk/src/org/openstreetmap/josm/actions/OpenAction.java

    r572 r584  
    7373                OsmDataLayer layer = new OsmDataLayer(dataSet, file.getName(), file);
    7474            Main.main.addLayer(layer);
    75             } else if (ExtensionFileFilter.filters[ExtensionFileFilter.CSV].acceptName(fn))
    76                 JOptionPane.showMessageDialog(Main.parent, fn+": "+tr("CSV Data import for non-GPS data is not implemented yet."));
     75            }
    7776            else
    7877                JOptionPane.showMessageDialog(Main.parent, fn+": "+tr("Unknown file extension: {0}", fn.substring(file.getName().lastIndexOf('.')+1)));
     
    8584                        if (file.getName().endsWith(".gpx.gz")) {
    8685                                r = new GpxReader(new GZIPInputStream(new FileInputStream(file)), file.getAbsoluteFile().getParentFile());
    87                         } else{
     86                        } else {
    8887                                r = new GpxReader(new FileInputStream(file), file.getAbsoluteFile().getParentFile());
    8988                        }
  • trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java

    r516 r584  
    150150                                if (!Main.pref.getBoolean("save.keepbackup") && (tmpFile != null))
    151151                                        tmpFile.delete();
    152                         } else if (ExtensionFileFilter.filters[ExtensionFileFilter.CSV].acceptName(file.getPath())) {
    153                                 JOptionPane.showMessageDialog(Main.parent, tr("CSV output not supported yet."));
    154                                 return;
    155152                        } else {
    156153                                JOptionPane.showMessageDialog(Main.parent, tr("Unknown file extension."));
     
    192189                                        tmpFile.delete();
    193190                                }
    194                         } else if (ExtensionFileFilter.filters[ExtensionFileFilter.CSV].acceptName(file.getPath())) {
    195                                 JOptionPane.showMessageDialog(Main.parent, tr("CSV output not supported yet."));
    196                                 return;
    197191                        } else {
    198192                                JOptionPane.showMessageDialog(Main.parent, tr("Unknown file extension."));
  • trunk/src/org/openstreetmap/josm/gui/MainApplication.java

    r486 r584  
    148148                                        "\t[--download=]minlat,minlon,maxlat,maxlon  "+tr("Download the bounding box")+"\n"+
    149149                                        "\t[--download=]<url>                        "+tr("Download the location at the url (with lat=x&lon=y&zoom=z)")+"\n"+
    150                                         "\t[--download=]<filename>                   "+tr("Open file (as raw gps, if .gpx or .csv)")+"\n"+
     150                                        "\t[--download=]<filename>                   "+tr("Open file (as raw gps, if .gpx)")+"\n"+
    151151                                        "\t--downloadgps=minlat,minlon,maxlat,maxlon "+tr("Download the bounding box as raw gps")+"\n"+
    152152                                        "\t--selection=<searchstring>                "+tr("Select with the given search")+"\n"+
  • trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceDialog.java

    r553 r584  
    104104                settings.add(new MapPaintPreference());
    105105                settings.add(new ServerAccessPreference());
    106                 settings.add(new CsvPreference());
    107106                settings.add(new FilePreferences());
    108107                settings.add(new ProjectionPreference());
Note: See TracChangeset for help on using the changeset viewer.