[OSM-talk] JOSM's Intensive Upper Body Workout

Scott Walde scott at waldetech.ca
Wed Jun 6 22:27:46 BST 2007


Christof Dallermassl wrote:
>> 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.
>>     
>
>   
Can you please attach this patch to ticket 162.
http://josm.eigenheimstrasse.de/ticket/162

ticket 158 is also the same "bug", but the proposed solution is different.

ttyl
srw
> 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();
>   				}
>               }
>   			
>
>   





More information about the talk mailing list