Changeset 5116 in josm for trunk/src/org


Ignore:
Timestamp:
2012-03-24T13:08:07+01:00 (13 years ago)
Author:
simon04
Message:

fix #7518 - Remote Control: make addtags really work when using load_object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadObjectHandler.java

    r5095 r5116  
    55import java.util.LinkedList;
    66import java.util.List;
     7import org.openstreetmap.josm.Main;
    78import org.openstreetmap.josm.actions.DownloadPrimitiveAction;
    89import org.openstreetmap.josm.data.osm.PrimitiveId;
     
    2930            System.out.println("RemoteControl: download forbidden by preferences");
    3031        }
    31         List<PrimitiveId> ps = new LinkedList<PrimitiveId>();
     32        final List<PrimitiveId> ps = new LinkedList<PrimitiveId>();
    3233        for (String i : args.get("objects").split(",\\s*")) {
    3334            ps.add(SimplePrimitiveId.fromString(i));
     
    3637        boolean relationMembers = Boolean.parseBoolean(args.get("relation_members"));
    3738        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        });
    3947    }
    4048
Note: See TracChangeset for help on using the changeset viewer.