Changeset 2512 in josm for trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
- Timestamp:
- 2009-11-24T10:45:04+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r2497 r2512 57 57 /** 58 58 * Replies the API version this dataset was created from. May be null. 59 * 59 * 60 60 * @return the API version this dataset was created from. May be null. 61 61 */ … … 66 66 /** 67 67 * Sets the API version this dataset was created from. 68 * 68 * 69 69 * @param version the API version, i.e. "0.5" or "0.6" 70 70 */ … … 81 81 /** 82 82 * Replies an unmodifiable collection of nodes in this dataset 83 * 83 * 84 84 * @return an unmodifiable collection of nodes in this dataset 85 85 */ … … 101 101 /** 102 102 * Replies an unmodifiable collection of ways in this dataset 103 * 103 * 104 104 * @return an unmodifiable collection of ways in this dataset 105 105 */ … … 119 119 /** 120 120 * Replies an unmodifiable collection of relations in this dataset 121 * 121 * 122 122 * @return an unmodifiable collection of relations in this dataset 123 123 */ … … 239 239 } 240 240 241 242 241 /*--------------------------------------------------- 243 242 * SELECTION HANDLING … … 254 253 * notifies all registered selection change listeners about the current selection of 255 254 * primitives 256 * 255 * 257 256 * @param sel the current selection 258 257 */ … … 266 265 * Notifies all registered {@see SelectionChangedListener} about the current selection in 267 266 * this dataset. 268 * 267 * 269 268 */ 270 269 public void fireSelectionChanged(){ 271 270 notifySelectionChangeListeners(selectedPrimitives); 272 271 } 273 274 272 275 273 LinkedHashSet<OsmPrimitive> selectedPrimitives = new LinkedHashSet<OsmPrimitive>(); … … 285 283 return sel; 286 284 } 287 288 285 289 286 /** … … 339 336 } 340 337 341 342 338 public void toggleSelected(Collection<? extends PrimitiveId> osm) { 343 339 boolean changed = false; … … 457 453 } 458 454 459 460 455 /*------------------------------------------------------ 461 456 * FILTERED / DISABLED HANDLING … … 508 503 } 509 504 510 511 505 /** 512 506 * Remove the filtered parameter from every value in the collection. … … 531 525 } 532 526 } 533 534 527 535 528 @Override public DataSet clone() { … … 789 782 } 790 783 791 792 784 public void addDataSetListener(DataSetListener dsl) { 793 785 listeners.add(dsl); … … 913 905 * Removes all primitives from the dataset and resets the currently selected primitives 914 906 * to the empty collection. Also notifies selection change listeners if necessary. 915 * 907 * 916 908 */ 917 909 public void clear() { … … 926 918 } 927 919 928 929 920 // TODO Should be completely part of validator 930 921 private Map<OsmPrimitive, List<String>> errors = new HashMap<OsmPrimitive, List<String>>(); … … 941 932 /** 942 933 * Replies the list of errors registered for this primitive. 943 * 934 * 944 935 * @param primitive the primitive for which errors are queried 945 936 * @return the list of errors. Never null.
Note:
See TracChangeset
for help on using the changeset viewer.