Changeset 14377 in josm


Ignore:
Timestamp:
2018-10-28T16:16:53+01:00 (6 weeks ago)
Author:
simon04
Message:

see #15676 - Add usage example for select=currentselection

File:
1 edited

Legend:

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

    r14221 r14377  
    5757     */
    5858    public static final String command2 = "zoom";
     59    private static final String CURRENT_SELECTION = "currentselection";
    5960
    6061    // Mandatory arguments
     
    112113            "/zoom?left=8.19&right=8.20&top=48.605&bottom=48.590&select=node413602999",
    113114            "/zoom?left=8.19&right=8.20&top=48.605&bottom=48.590&search=highway+OR+railway",
     115            "/zoom?left=8.19&right=8.20&top=48.605&bottom=48.590&search=" + CURRENT_SELECTION + "&addtags=foo=bar",
    114116            };
    115117        }
     
    316318            for (String item : args.get("select").split(",")) {
    317319                if (!item.isEmpty()) {
    318                     if ("currentselection".equals(item.toLowerCase(Locale.ENGLISH))) {
     320                    if (CURRENT_SELECTION.equals(item.toLowerCase(Locale.ENGLISH))) {
    319321                        isKeepingCurrentSelection = true;
    320322                        continue;
Note: See TracChangeset for help on using the changeset viewer.