Changeset 8441 in josm for trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java
- Timestamp:
- 2015-06-02T14:03:31+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java
r8429 r8441 46 46 */ 47 47 class AutoCompletingComboBoxDocument extends PlainDocument { 48 private JosmComboBox<AutoCompletionListItem> comboBox;48 private final JosmComboBox<AutoCompletionListItem> comboBox; 49 49 private boolean selecting = false; 50 50 … … 88 88 // if the current offset isn't at the end of the document we don't autocomplete. 89 89 // If a highlighted autocompleted suffix was present and we get here Swing has 90 // already removed it from the document. getLength() therefore doesn't include the 91 // autocompleted suffix. 90 // already removed it from the document. getLength() therefore doesn't include the autocompleted suffix. 92 91 if (offs + str.length() < getLength()) { 93 92 return; … … 109 108 item = lookupItem(curText, true); 110 109 } catch (NumberFormatException e) { 111 // either the new text or the current text isn't a number. We continue with 112 // autocompletion 110 // either the new text or the current text isn't a number. We continue with autocompletion 113 111 item = lookupItem(curText, false); 114 112 }
Note:
See TracChangeset
for help on using the changeset viewer.