Changeset 11446 in josm for trunk/src/org
- Timestamp:
- 2017-01-09T19:00:10+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions/search
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r11374 r11446 462 462 .addKeyword("new", "new ", tr("all new objects")) 463 463 .addKeyword("selected", "selected ", tr("all selected objects")) 464 .addKeyword("incomplete", "incomplete ", tr("all incomplete objects")), 464 .addKeyword("incomplete", "incomplete ", tr("all incomplete objects")) 465 .addKeyword("deleted", "deleted ", tr("all deleted objects (checkbox <b>{0}</b> must be enabled)", tr("all objects"))), 465 466 GBC.eol()); 466 467 right.add(new SearchKeywordRow(hcbSearchString) -
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r11393 r11446 112 112 public class CoreSimpleMatchFactory implements SimpleMatchFactory { 113 113 private final Collection<String> keywords = Arrays.asList("id", "version", "type", "user", "role", 114 "changeset", "nodes", "ways", "tags", "areasize", "waylength", "modified", " selected",114 "changeset", "nodes", "ways", "tags", "areasize", "waylength", "modified", "deleted", "selected", 115 115 "incomplete", "untagged", "closed", "new", "indownloadedarea", 116 116 "allindownloadedarea", "inview", "allinview", "timestamp", "nth", "nth%", "hasRole"); … … 121 121 case "modified": 122 122 return new Modified(); 123 case "deleted": 124 return new Deleted(); 123 125 case "selected": 124 126 return new Selected(); … … 1256 1258 1257 1259 /** 1260 * Matches all objects that have been deleted 1261 */ 1262 private static class Deleted extends Match { 1263 @Override 1264 public boolean match(OsmPrimitive osm) { 1265 return osm.isDeleted(); 1266 } 1267 1268 @Override 1269 public String toString() { 1270 return "deleted"; 1271 } 1272 } 1273 1274 /** 1258 1275 * Matches all objects currently selected 1259 1276 */
Note:
See TracChangeset
for help on using the changeset viewer.