Changeset 3215 in josm for trunk/src/org/openstreetmap/josm/gui/tagging
- Timestamp:
- 2010-05-03T10:52:48+02:00 (14 years ago)
- 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 18 18 import javax.swing.text.JTextComponent; 19 19 import javax.swing.text.PlainDocument; 20 import javax.swing.text.StyleConstants; 20 21 21 22 /** … … 57 58 return; 58 59 if (!autocompleteEnabled) 60 return; 61 // input method for non-latin characters (e.g. scim) 62 if (a != null && a.isDefined(StyleConstants.ComposedTextAttribute)) 59 63 return; 60 64 -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingTextField.java
r3210 r3215 19 19 import javax.swing.text.Document; 20 20 import javax.swing.text.PlainDocument; 21 import javax.swing.text.StyleConstants; 21 22 22 23 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList; … … 52 53 } 53 54 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 54 61 // if the current offset isn't at the end of the document we don't autocomplete. 55 62 // 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 25 25 * constructor 26 26 */ 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 27 37 public AutoCompletionListItem() { 28 38 value = ""; … … 30 40 } 31 41 32 public AutoCompletionListItem(String value, AutoCompletionItemPritority priority) {33 this.value = value;34 this.priority = priority;35 }36 42 37 43 /**
Note:
See TracChangeset
for help on using the changeset viewer.