Changeset 2703 in josm for trunk/src/org


Ignore:
Timestamp:
2009-12-29T23:48:24+01:00 (14 years ago)
Author:
bastiK
Message:

correct errors from last check in

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r2702 r2703  
    6060    }
    6161
     62    static public void openFile(File f) throws IOException, IllegalDataException {
     63        for (FileImporter importer : ExtensionFileFilter.importers)
     64            if (importer.acceptFile(f)) {
     65                importer.importData(f);
     66            }
     67    }
     68
    6269    static public class OpenFileTask extends PleaseWaitRunnable {
    6370        private List<File> files;
     
    95102            /**
    96103             * If the filter wasn't changed in the dialog, chosenImporter is null now.
    97              * When the filter was expicitly set to AllFormatsImporter, treat this the same.
     104             * When the filter was explicitly set to AllFormatsImporter, treat this the same.
    98105             */
    99106            if (chosenImporter instanceof AllFormatsImporter) {
  • trunk/src/org/openstreetmap/josm/io/FileImporter.java

    r2702 r2703  
    2626
    2727    /**
    28      * A batch importer is a file importer that preferes to read multiple files at the same time.
     28     * A batch importer is a file importer that prefers to read multiple files at the same time.
    2929     */
    3030    public boolean isBatchImporter() {
Note: See TracChangeset for help on using the changeset viewer.