Changeset 9980 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2016-03-13T16:31:38+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r9940 r9980 67 67 68 68 public enum SearchMode { 69 replace('R'), add('A'), remove('D'), in_selection('S'); 69 /** replace selection */ 70 replace('R'), 71 /** add to selection */ 72 add('A'), 73 /** remove from selection */ 74 remove('D'), 75 /** find in selection */ 76 in_selection('S'); 70 77 71 78 private final char code; … … 75 82 } 76 83 84 /** 85 * Returns the unique character code of this mode. 86 * @return the unique character code of this mode 87 */ 77 88 public char getCode() { 78 89 return code; 79 90 } 80 91 92 /** 93 * Returns the search mode matching the given character code. 94 * @param code character code 95 * @return search mode matching the given character code 96 */ 81 97 public static SearchMode fromCode(char code) { 82 98 for (SearchMode mode: values()) {
Note:
See TracChangeset
for help on using the changeset viewer.