Ignore:
Timestamp:
2015-10-22T14:01:47+02:00 (4 years ago)
Author:
Don-vip
Message:

fix #11998 - add two new protected boolean members to simplify customization of OSM download task for plugins + fix some javadoc/sonar issues

File:
1 edited

Legend:

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

    r8304 r8927  
    6060    @Override
    6161    public String[] getUsageExamples() {
    62         final String data = Utils.encodeUrl("<osm version='0.6'><node id='-1' lat='1' lon='2' /></osm>");
    6362        return new String[]{
    64                 "/load_data?layer_name=extra_layer&new_layer=true&data=" + data};
     63                "/load_data?layer_name=extra_layer&new_layer=true&data=" +
     64                    Utils.encodeUrl("<osm version='0.6'><node id='-1' lat='1' lon='2' /></osm>")};
    6565    }
    6666
     
    101101        protected final String layerName;
    102102
     103        /**
     104         * Constructs a new {@code LoadDataTask}.
     105         * @param newLayer if {@code true}, force download to a new layer
     106         * @param dataSet data set
     107         * @param layerName layer name
     108         */
    103109        public LoadDataTask(boolean newLayer, DataSet dataSet, String layerName) {
    104             super(newLayer, tr("Loading data"), false);
     110            super(newLayer, tr("Loading data"), false, true);
    105111            this.dataSet = dataSet;
    106112            this.layerName = layerName;
Note: See TracChangeset for help on using the changeset viewer.