Changeset 5790 in josm for trunk/src/org/openstreetmap/josm/io/remotecontrol/handler
- Timestamp:
- 2013-03-21T14:41:44+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java
r5707 r5790 27 27 import org.openstreetmap.josm.data.osm.Way; 28 28 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 29 import org.openstreetmap.josm.gui.util.GuiHelper; 29 30 import org.openstreetmap.josm.io.remotecontrol.AddTagsDialog; 30 31 import org.openstreetmap.josm.io.remotecontrol.PermissionPrefWithDefault; … … 132 133 */ 133 134 if (args.containsKey("addtags")) { 134 Main.worker.execute(new Runnable() {135 GuiHelper.executeByMainWorkerInEDT(new Runnable() { 135 136 public void run() { 136 137 DataSet ds = Main.main.getCurrentDataSet(); … … 145 146 if (args.containsKey("select") && PermissionPrefWithDefault.CHANGE_SELECTION.isAllowed()) { 146 147 // select objects after downloading, zoom to selection. 147 Main.worker.execute(new Runnable() {148 GuiHelper.executeByMainWorkerInEDT(new Runnable() { 148 149 public void run() { 149 150 HashSet<OsmPrimitive> newSel = new HashSet<OsmPrimitive>(); … … 199 200 static void addTags(final Map<String, String> args) { 200 201 if (args.containsKey("addtags")) { 201 Main.worker.execute(new Runnable() {202 GuiHelper.executeByMainWorkerInEDT(new Runnable() { 202 203 203 204 public void run() { … … 235 236 // make sure this isn't called unless there *is* a MapView 236 237 if (Main.isDisplayingMapView()) { 237 Main.worker.execute(new Runnable() {238 GuiHelper.executeByMainWorkerInEDT(new Runnable() { 238 239 public void run() { 239 240 BoundingXYVisitor bbox = new BoundingXYVisitor();
Note:
See TracChangeset
for help on using the changeset viewer.