Ignore:
Timestamp:
2010-05-03T10:52:48+02:00 (14 years ago)
Author:
bastiK
Message:

fixed #4979 Exception when opening the download window; fixed #2221 - Unexcepted Exception when typing into "Change values?" box with an input method on Mac OS X

Location:
trunk/src/org/openstreetmap/josm/gui/tagging/ac
Files:
3 edited

Legend:

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

    r3214 r3215  
    1818import javax.swing.text.JTextComponent;
    1919import javax.swing.text.PlainDocument;
     20import javax.swing.text.StyleConstants;
    2021
    2122/**
     
    5758                return;
    5859            if (!autocompleteEnabled)
     60                return;
     61            // input method for non-latin characters (e.g. scim)
     62            if (a != null && a.isDefined(StyleConstants.ComposedTextAttribute))
    5963                return;
    6064
  • trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingTextField.java

    r3210 r3215  
    1919import javax.swing.text.Document;
    2020import javax.swing.text.PlainDocument;
     21import javax.swing.text.StyleConstants;
    2122
    2223import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList;
     
    5253            }
    5354
     55            // input method for non-latin characters (e.g. scim)
     56            if (a != null && a.isDefined(StyleConstants.ComposedTextAttribute)) {
     57                super.insertString(offs, str, a);
     58                return;
     59            }
     60
    5461            // if the current offset isn't at the end of the document we don't autocomplete.
    5562            // If a highlighted autocompleted suffix was present and we get here Swing has
  • trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionListItem.java

    r3214 r3215  
    2525     * constructor
    2626     */
     27    public AutoCompletionListItem(String value, AutoCompletionItemPritority priority) {
     28        this.value = value;
     29        this.priority = priority;
     30    }
     31
     32    public AutoCompletionListItem(String value) {
     33        this.value = value;
     34        priority = AutoCompletionItemPritority.UNKNOWN;
     35    }
     36
    2737    public AutoCompletionListItem() {
    2838        value = "";
     
    3040    }
    3141
    32     public AutoCompletionListItem(String value, AutoCompletionItemPritority priority) {
    33         this.value = value;
    34         this.priority = priority;
    35     }
    3642
    3743    /**
Note: See TracChangeset for help on using the changeset viewer.