Changeset 34569 in osm for applications/editors/josm/plugins/waydownloader/src
- Timestamp:
- 2018-08-18T20:52:28+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/waydownloader/src/org/openstreetmap/josm/plugins/waydownloader/WayDownloaderPlugin.java
r34313 r34569 14 14 import javax.swing.JOptionPane; 15 15 16 import org.openstreetmap.josm.Main;17 16 import org.openstreetmap.josm.actions.JosmAction; 18 17 import org.openstreetmap.josm.actions.MergeNodesAction; … … 22 21 import org.openstreetmap.josm.data.Bounds; 23 22 import org.openstreetmap.josm.data.DataSource; 23 import org.openstreetmap.josm.data.UndoRedoHandler; 24 24 import org.openstreetmap.josm.data.coor.LatLon; 25 25 import org.openstreetmap.josm.data.osm.DataSet; … … 35 35 import org.openstreetmap.josm.plugins.Plugin; 36 36 import org.openstreetmap.josm.plugins.PluginInformation; 37 import org.openstreetmap.josm.spi.preferences.Config; 37 38 import org.openstreetmap.josm.tools.Logging; 38 39 import org.openstreetmap.josm.tools.Shortcut; … … 105 106 106 107 //Download a little rectangle around the selected node 107 double latbuffer = Main.pref.getDouble("waydownloader.latbuffer", 0.00001);108 double lonbuffer = Main.pref.getDouble("waydownloader.latbuffer", 0.00002);108 double latbuffer = Config.getPref().getDouble("waydownloader.latbuffer", 0.00001); 109 double lonbuffer = Config.getPref().getDouble("waydownloader.latbuffer", 0.00002); 109 110 DownloadOsmTask downloadTask = new DownloadOsmTask(); 110 111 final PleaseWaitProgressMonitor monitor = new PleaseWaitProgressMonitor(); … … 171 172 172 173 int ret = JOptionPane.showConfirmDialog( 173 Main .parent,174 MainApplication.getMainFrame(), 174 175 msg, 175 176 tr("Merge duplicate node?"), … … 184 185 ); 185 186 if (cmd != null) { 186 MainApplication.undoRedo.add(cmd);187 UndoRedoHandler.getInstance().add(cmd); 187 188 MainApplication.getLayerManager().getEditLayer().data.setSelected(selectedNode); 188 189 }
Note:
See TracChangeset
for help on using the changeset viewer.