Ignore:
Timestamp:
2015-06-02T14:03:31+02:00 (9 years ago)
Author:
Don-vip
Message:

see #11209 - add debug messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java

    r8429 r8441  
    4646     */
    4747    class AutoCompletingComboBoxDocument extends PlainDocument {
    48         private JosmComboBox<AutoCompletionListItem> comboBox;
     48        private final JosmComboBox<AutoCompletionListItem> comboBox;
    4949        private boolean selecting = false;
    5050
     
    8888            // if the current offset isn't at the end of the document we don't autocomplete.
    8989            // 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.
    9291            if (offs + str.length() < getLength()) {
    9392                return;
     
    109108                    item = lookupItem(curText, true);
    110109                } 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
    113111                    item = lookupItem(curText, false);
    114112                }
Note: See TracChangeset for help on using the changeset viewer.