Changeset 5912 in josm
- Timestamp:
- 2013-04-29T02:00:39+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r5886 r5912 80 80 import org.openstreetmap.josm.gui.util.GuiHelper; 81 81 import org.openstreetmap.josm.gui.widgets.JosmComboBox; 82 import org.openstreetmap.josm.gui.widgets.JosmTextField; 82 83 import org.openstreetmap.josm.io.MirroredInputStream; 83 84 import org.openstreetmap.josm.tools.GBC; … … 91 92 import org.openstreetmap.josm.tools.template_engine.TemplateParser; 92 93 import org.xml.sax.SAXException; 93 import org.openstreetmap.josm.gui.widgets.JosmTextField;94 94 95 95 … … 1012 1012 } else { 1013 1013 String s = o.toString(); 1014 HashSet<String> parts = new HashSet<String>(Arrays.asList(s.split(delimiter)));1014 TreeSet<String> parts = new TreeSet<String>(Arrays.asList(s.split(delimiter))); 1015 1015 ListModel lm = getModel(); 1016 1016 int[] intParts = new int[lm.getSize()]; … … 1025 1025 // value with our presets. if not, cop out; we will not offer 1026 1026 // a selection list that threatens to ruin the value. 1027 setEnabled( s.equals(getSelectedItem()));1027 setEnabled(Utils.join(delimiter, parts).equals(getSelectedItem())); 1028 1028 } 1029 1029 }
Note:
See TracChangeset
for help on using the changeset viewer.