Changeset 14005 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode
- Timestamp:
- 2018-07-06T01:32:11+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions/mapmode
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r14003 r14005 1359 1359 } 1360 1360 1361 /**1362 * Gets a collection of primitives that should not be hidden by the filter.1363 * @return The primitives that the filter should not hide.1364 * @deprecated use {@link org.openstreetmap.josm.data.osm.DataSet#allPreservedPrimitives}1365 * @since 119931366 */1367 @Override1368 @Deprecated1369 public Collection<? extends OsmPrimitive> getPreservedPrimitives() {1370 DataSet ds = getLayerManager().getEditDataSet();1371 return ds != null ? ds.allPreservedPrimitives() : Collections.emptySet();1372 }1373 1374 1361 @Override 1375 1362 public boolean layerIsSupported(Layer l) { -
trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java
r13847 r14005 8 8 import java.awt.event.MouseListener; 9 9 import java.awt.event.MouseMotionListener; 10 import java.util.Collection;11 import java.util.Collections;12 10 13 11 import javax.swing.Action; 14 12 15 13 import org.openstreetmap.josm.actions.JosmAction; 16 import org.openstreetmap.josm.data.osm.OsmPrimitive;17 14 import org.openstreetmap.josm.gui.MainApplication; 18 15 import org.openstreetmap.josm.gui.MapFrame; … … 237 234 238 235 /** 239 * Gets a collection of primitives that should not be hidden by the filter.240 * @return The primitives that the filter should not hide.241 * @deprecated use {@link org.openstreetmap.josm.data.osm.DataSet#allPreservedPrimitives}242 * @since 11993243 */244 @Deprecated245 public Collection<? extends OsmPrimitive> getPreservedPrimitives() {246 return Collections.emptySet();247 }248 249 /**250 236 * Determines if the given layer is a data layer that can be modified. 251 237 * Useful for {@link #layerIsSupported(Layer)} implementations.
Note:
See TracChangeset
for help on using the changeset viewer.