Changeset 5116 in josm for trunk/src/org
- Timestamp:
- 2012-03-24T13:08:07+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadObjectHandler.java
r5095 r5116 5 5 import java.util.LinkedList; 6 6 import java.util.List; 7 import org.openstreetmap.josm.Main; 7 8 import org.openstreetmap.josm.actions.DownloadPrimitiveAction; 8 9 import org.openstreetmap.josm.data.osm.PrimitiveId; … … 29 30 System.out.println("RemoteControl: download forbidden by preferences"); 30 31 } 31 List<PrimitiveId> ps = new LinkedList<PrimitiveId>();32 final List<PrimitiveId> ps = new LinkedList<PrimitiveId>(); 32 33 for (String i : args.get("objects").split(",\\s*")) { 33 34 ps.add(SimplePrimitiveId.fromString(i)); … … 36 37 boolean relationMembers = Boolean.parseBoolean(args.get("relation_members")); 37 38 DownloadPrimitiveAction.processItems(newLayer, ps, true, relationMembers); 38 LoadAndZoomHandler.addTags(args); 39 Main.worker.submit(new Runnable() { 40 41 @Override 42 public void run() { 43 Main.main.getCurrentDataSet().setSelected(ps); 44 LoadAndZoomHandler.addTags(args); 45 } 46 }); 39 47 } 40 48
Note:
See TracChangeset
for help on using the changeset viewer.