Changeset 34466 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/SimpleOffsetQueryTask.java
- Timestamp:
- 2018-08-15T02:05:27+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/SimpleOffsetQueryTask.java
r34337 r34466 16 16 import javax.swing.JOptionPane; 17 17 18 import org.openstreetmap.josm. Main;18 import org.openstreetmap.josm.gui.MainApplication; 19 19 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 20 import org.openstreetmap.josm.spi.preferences.Config; 20 21 21 22 /** … … 89 90 private void doQuery(String query) throws UploadException, IOException { 90 91 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/"); 92 93 URL url = new URL(serverURL + query); 93 94 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); … … 125 126 protected void finish() { 126 127 if (errorMessage != null) { 127 JOptionPane.showMessageDialog(Main .parent, errorMessage,128 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), errorMessage, 128 129 ImageryOffsetTools.DIALOG_TITLE, JOptionPane.ERROR_MESSAGE); 129 130 } else if (listener != null) {
Note:
See TracChangeset
for help on using the changeset viewer.
