[OSM-talk] JOSM's Intensive Upper Body Workout
Christof Dallermassl
cdaller.hw at gmx.at
Wed Jun 6 12:16:37 BST 2007
> Auto-complete will be a nice thing.
+1
> While it's not there, a quick fix is to modify JOSM to select the
> automatic value when it's filled. If the value is wrong, the user just
> have to type the correct one.
please apply the following patch:
Index:
/home/cdaller/eclipse-workspace/JOSM/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
===================================================================
---
/home/cdaller/eclipse-workspace/JOSM/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
(revision 248)
+++
/home/cdaller/eclipse-workspace/JOSM/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
(working copy)
@@ -210,6 +210,8 @@
if (allData.containsKey(key)) {
Vector<String> newValues = new Vector<String>(allData.get(key));
values.setModel(new DefaultComboBoxModel(newValues));
+ // select the new proposed value
+ values.getEditor().selectAll();
}
}
--
---------------------------------------------------------------------------
Christof Dallermassl
christof at dallermassl.at
---------------------------------------------------------------------------
More information about the talk
mailing list