Index: trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java	(revision 2702)
+++ trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java	(revision 2703)
@@ -60,4 +60,11 @@
     }
 
+    static public void openFile(File f) throws IOException, IllegalDataException {
+        for (FileImporter importer : ExtensionFileFilter.importers)
+            if (importer.acceptFile(f)) {
+                importer.importData(f);
+            }
+    }
+
     static public class OpenFileTask extends PleaseWaitRunnable {
         private List<File> files;
@@ -95,5 +102,5 @@
             /**
              * If the filter wasn't changed in the dialog, chosenImporter is null now.
-             * When the filter was expicitly set to AllFormatsImporter, treat this the same.
+             * When the filter was explicitly set to AllFormatsImporter, treat this the same.
              */
             if (chosenImporter instanceof AllFormatsImporter) {
Index: trunk/src/org/openstreetmap/josm/io/FileImporter.java
===================================================================
--- trunk/src/org/openstreetmap/josm/io/FileImporter.java	(revision 2702)
+++ trunk/src/org/openstreetmap/josm/io/FileImporter.java	(revision 2703)
@@ -26,5 +26,5 @@
 
     /**
-     * A batch importer is a file importer that preferes to read multiple files at the same time.
+     * A batch importer is a file importer that prefers to read multiple files at the same time.
      */
     public boolean isBatchImporter() {
