Changeset 6782 in josm
- Timestamp:
- 2014-01-30T00:33:07+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io/remotecontrol/handler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadObjectHandler.java
r6536 r6782 35 35 36 36 @Override 37 public String[] getOptionalParams() 38 { 39 return new String[] {"new_layer", "addtags"}; 37 public String[] getOptionalParams() { 38 return new String[] {"new_layer", "addtags", "relation_members", "referrers"}; 40 39 } 41 40 … … 48 47 public String[] getUsageExamples() { 49 48 return new String[] {"/load_object?new_layer=true&objects=w106159509", 50 "/load_object?new_layer=true&objects=r2263653&relation_members=true" 49 "/load_object?new_layer=true&objects=r2263653&relation_members=true", 50 "/load_object?objects=n100000&referrers=false" 51 51 }; 52 52 } … … 60 60 final boolean newLayer = isLoadInNewLayer(); 61 61 final boolean relationMembers = Boolean.parseBoolean(args.get("relation_members")); 62 final boolean referrers = args.containsKey("referrers") ? Boolean.parseBoolean(args.get("referrers")) : true; 62 63 GuiHelper.runInEDTAndWait(new Runnable() { 63 64 @Override public void run() { 64 DownloadPrimitiveAction.processItems(newLayer, ps, true, relationMembers);65 DownloadPrimitiveAction.processItems(newLayer, ps, referrers, relationMembers); 65 66 } 66 67 }); -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandler.java
r6536 r6782 60 60 * @throws RequestHandlerErrorException 61 61 */ 62 public final void handle() throws RequestHandlerForbiddenException, RequestHandlerBadRequestException, RequestHandlerErrorException 63 { 62 public final void handle() throws RequestHandlerForbiddenException, RequestHandlerBadRequestException, RequestHandlerErrorException { 64 63 checkMandatoryParams(); 65 64 validateRequest();
Note:
See TracChangeset
for help on using the changeset viewer.