Changeset 5497 in josm for trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
- Timestamp:
- 2012-09-03T18:56:02+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r5442 r5497 609 609 *----------------------------------*/ 610 610 611 612 611 private static volatile Collection<String> uninteresting = null; 612 private static volatile Collection<String> discardable = null; 613 613 614 /** 614 615 * Contains a list of "uninteresting" keys that do not make an object … … 620 621 if (uninteresting == null) { 621 622 uninteresting = Main.pref.getCollection("tags.uninteresting", 622 Arrays.asList( new String[]{"source", "source_ref", "source:", "note", "comment",623 Arrays.asList("source", "source_ref", "source:", "note", "comment", 623 624 "converted_by", "created_by", "watch", "watch:", "fixme", "FIXME", 624 "description", "attribution" }));625 "description", "attribution")); 625 626 } 626 627 return uninteresting; 628 } 629 630 /** 631 * Returns a list of keys which have been deemed uninteresting to the point 632 * that they can be silently removed from data which is being edited. 633 */ 634 public static Collection<String> getDiscardableKeys() { 635 if(discardable == null) { 636 discardable = Main.pref.getCollection("tags.discardable", 637 Arrays.asList("created_by", 638 "tiger:upload_uuid", "tiger:tlid", "tiger:source", "tiger:separated", 639 "geobase:datasetName", "geobase:uuid", "sub_sea:type", 640 "odbl", "odbl:note")); 641 } 642 return discardable; 627 643 } 628 644
Note:
See TracChangeset
for help on using the changeset viewer.