Ignore:
Timestamp:
2017-08-25T10:18:53+02:00 (2 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.main.menu. Replacement: gui.MainApplication.getMenu()

File:
1 edited

Legend:

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

    r12620 r12643  
    1313import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask;
    1414import org.openstreetmap.josm.actions.downloadtasks.DownloadTask;
     15import org.openstreetmap.josm.gui.MainApplication;
    1516import org.openstreetmap.josm.io.remotecontrol.PermissionPrefWithDefault;
    1617import org.openstreetmap.josm.tools.Logging;
     
    4142            } else if (Main.pref.getBoolean("remotecontrol.import.interactive", true)) {
    4243                // OpenLocationAction queries the user if more than one task is suitable
    43                 Main.main.menu.openLocation.openUrl(isLoadInNewLayer(), url.toExternalForm());
     44                MainApplication.getMenu().openLocation.openUrl(isLoadInNewLayer(), url.toExternalForm());
    4445            } else {
    4546                // Otherwise perform all tasks
     
    110111        }
    111112        // Find download tasks for the given URL
    112         suitableDownloadTasks = Main.main.menu.openLocation.findDownloadTasks(urlString, true);
     113        suitableDownloadTasks = MainApplication.getMenu().openLocation.findDownloadTasks(urlString, true);
    113114    }
    114115}
Note: See TracChangeset for help on using the changeset viewer.