Ignore:
Timestamp:
2017-09-04T00:50:22+02:00 (7 years ago)
Author:
Don-vip
Message:

see #13036 - see #15229 - see #15182 - make Commands depends only on a DataSet, not a Layer. This removes a lot of GUI dependencies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/AddPrimitivesCommand.java

    r11609 r12718  
    5959     * @param toSelect The OSM primitives to select at the end. Can be {@code null}
    6060     * @param layer The target data layer. Must not be {@code null}
    61      */
     61     * @deprecated to be removed end of 2017. Use {@link #AddPrimitivesCommand(List, List, DataSet)} instead
     62     */
     63    @Deprecated
    6264    public AddPrimitivesCommand(List<PrimitiveData> data, List<PrimitiveData> toSelect, OsmDataLayer layer) {
    6365        super(layer);
     66        init(data, toSelect);
     67    }
     68
     69    /**
     70     * Constructs a new {@code AddPrimitivesCommand} to add data to the given data set.
     71     * @param data The OSM primitives data to add. Must not be {@code null}
     72     * @param toSelect The OSM primitives to select at the end. Can be {@code null}
     73     * @param ds The target data set. Must not be {@code null}
     74     * @since 12718
     75     */
     76    public AddPrimitivesCommand(List<PrimitiveData> data, List<PrimitiveData> toSelect, DataSet ds) {
     77        super(ds);
    6478        init(data, toSelect);
    6579    }
Note: See TracChangeset for help on using the changeset viewer.