Ignore:
Timestamp:
2018-08-15T02:05:27+02:00 (8 years ago)
Author:
donvip
Message:

update to JOSM 14153

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/SimpleOffsetQueryTask.java

    r34337 r34466  
    1616import javax.swing.JOptionPane;
    1717
    18 import org.openstreetmap.josm.Main;
     18import org.openstreetmap.josm.gui.MainApplication;
    1919import org.openstreetmap.josm.gui.PleaseWaitRunnable;
     20import org.openstreetmap.josm.spi.preferences.Config;
    2021
    2122/**
     
    8990    private void doQuery(String query) throws UploadException, IOException {
    9091        try {
    91             String serverURL = Main.pref.get("iodb.server.url", "http://offsets.textual.ru/");
     92            String serverURL = Config.getPref().get("iodb.server.url", "http://offsets.textual.ru/");
    9293            URL url = new URL(serverURL + query);
    9394            HttpURLConnection connection = (HttpURLConnection) url.openConnection();
     
    125126    protected void finish() {
    126127        if (errorMessage != null) {
    127             JOptionPane.showMessageDialog(Main.parent, errorMessage,
     128            JOptionPane.showMessageDialog(MainApplication.getMainFrame(), errorMessage,
    128129                    ImageryOffsetTools.DIALOG_TITLE, JOptionPane.ERROR_MESSAGE);
    129130        } else if (listener != null) {
Note: See TracChangeset for help on using the changeset viewer.