Changeset 13173 in josm for trunk/src/org/openstreetmap/josm/command/PurgeCommand.java
- Timestamp:
- 2017-11-28T00:56:29+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/PurgeCommand.java
r12846 r13173 30 30 import org.openstreetmap.josm.data.osm.Way; 31 31 import org.openstreetmap.josm.data.osm.WayData; 32 import org.openstreetmap.josm.gui.layer.OsmDataLayer;33 32 import org.openstreetmap.josm.spi.preferences.Config; 34 33 import org.openstreetmap.josm.tools.ImageProvider; … … 44 43 45 44 protected final ConflictCollection purgedConflicts = new ConflictCollection(); 46 47 /**48 * Constructs a new {@code PurgeCommand} (handles conflicts).49 * This command relies on a number of consistency conditions:50 * - makeIncomplete must be a subset of toPurge.51 * - Each primitive, that is in toPurge but not in makeIncomplete, must have all its referrers in toPurge.52 * - Each element of makeIncomplete must not be new and must have only referrers that are either a relation or included in toPurge.53 * @param layer OSM data layer54 * @param toPurge primitives to purge55 * @param makeIncomplete primitives to make incomplete56 * @deprecated to be removed end of 2017. Use {@link #PurgeCommand(DataSet, Collection, Collection)} instead57 */58 @Deprecated59 public PurgeCommand(OsmDataLayer layer, Collection<OsmPrimitive> toPurge, Collection<OsmPrimitive> makeIncomplete) {60 super(layer);61 init(toPurge, makeIncomplete);62 }63 45 64 46 /** … … 316 298 /** 317 299 * Creates a new {@code PurgeCommand} to purge selected OSM primitives. 318 * @param layer optional osm data layer, can be null319 * @param sel selected OSM primitives320 * @param toPurgeAdditionally optional list that will be filled with primitives to be purged that have not been in the selection321 * @return command to purge selected OSM primitives322 * @since 12688323 * @deprecated to be removed end of 2017. Use {@link #build(Collection, List)} instead324 */325 @Deprecated326 public static PurgeCommand build(OsmDataLayer layer, Collection<OsmPrimitive> sel, List<OsmPrimitive> toPurgeAdditionally) {327 return build(sel, toPurgeAdditionally);328 }329 330 /**331 * Creates a new {@code PurgeCommand} to purge selected OSM primitives.332 300 * @param sel selected OSM primitives 333 301 * @param toPurgeAdditionally optional list that will be filled with primitives to be purged that have not been in the selection
Note:
See TracChangeset
for help on using the changeset viewer.