Ignore:
Timestamp:
2015-05-19T23:27:04+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #11457 - use global action to benefit from custom download tasks in import handler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/ImportHandler.java

    r8249 r8400  
    1111
    1212import org.openstreetmap.josm.Main;
    13 import org.openstreetmap.josm.actions.OpenLocationAction;
    1413import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask;
    1514import org.openstreetmap.josm.actions.downloadtasks.DownloadTask;
     
    4140            } else if (Main.pref.getBoolean("remotecontrol.import.interactive", true)) {
    4241                // 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());
    4443            } else {
    4544                // Otherwise perform all tasks
     
    5958        return new String[]{"url"};
    6059    }
    61    
     60
    6261    @Override
    6362    public String[] getOptionalParams() {
     
    7473        return new String[] { "/import?url="+Main.getJOSMWebsite()+"/browser/josm/trunk/data_nodist/direction-arrows.osm" };
    7574    }
    76    
     75
    7776    @Override
    7877    public String getPermissionMessage() {
Note: See TracChangeset for help on using the changeset viewer.