- Timestamp:
- 2015-05-19T23:27:04+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/ImportHandler.java
r8249 r8400 11 11 12 12 import org.openstreetmap.josm.Main; 13 import org.openstreetmap.josm.actions.OpenLocationAction;14 13 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask; 15 14 import org.openstreetmap.josm.actions.downloadtasks.DownloadTask; … … 41 40 } else if (Main.pref.getBoolean("remotecontrol.import.interactive", true)) { 42 41 // OpenLocationAction queries the user if more than one task is suitable 43 new OpenLocationAction().openUrl(isLoadInNewLayer(), url.toExternalForm());42 Main.main.menu.openLocation.openUrl(isLoadInNewLayer(), url.toExternalForm()); 44 43 } else { 45 44 // Otherwise perform all tasks … … 59 58 return new String[]{"url"}; 60 59 } 61 60 62 61 @Override 63 62 public String[] getOptionalParams() { … … 74 73 return new String[] { "/import?url="+Main.getJOSMWebsite()+"/browser/josm/trunk/data_nodist/direction-arrows.osm" }; 75 74 } 76 75 77 76 @Override 78 77 public String getPermissionMessage() {
Note:
See TracChangeset
for help on using the changeset viewer.