Changeset 23102 in osm for applications/editors/josm
- Timestamp:
- 2010-09-10T21:40:00+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/addrinterpolation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/addrinterpolation/build.xml
r21710 r23102 25 25 26 26 <property name="commit.message" value="Impoved Icon" /> 27 <property name="plugin.main.version" value=" 2830" />27 <property name="plugin.main.version" value="3514" /> 28 28 29 29 <!-- -
applications/editors/josm/plugins/addrinterpolation/src/org/openstreetmap/josm/plugins/AddrInterpolation/AddrInterpolationDialog.java
r18874 r23102 283 283 public void focusGained(FocusEvent fe){ 284 284 if (!interpolationMethodSet) { 285 AutoDetectInterpolationMethod(); 286 interpolationMethodSet = true; // Don't auto detect over a previous choice 285 if (AutoDetectInterpolationMethod()) { 286 interpolationMethodSet = true; // Don't auto detect over a previous choice 287 } 287 288 } 288 289 } … … 343 344 // Call after both starting and ending housenumbers have been entered - usually when 344 345 // combo box gets focus. 345 private void AutoDetectInterpolationMethod() { 346 // Return true if a method was detected 347 private boolean AutoDetectInterpolationMethod() { 346 348 347 349 String startValueString = ReadTextField(startTextField); 348 350 String endValueString = ReadTextField(endTextField); 349 if ( startValueString.equals("") || endValueString.equals("")) {351 if ( (startValueString == null) || (endValueString== null) ) { 350 352 // Not all values entered yet 351 return ;353 return false; 352 354 } 353 355 … … 384 386 // Both end with alpha 385 387 SelectInterpolationMethod("alphabetic"); 386 return ;388 return true; 387 389 } 388 390 … … 392 394 // First is a number, last is Latin alpha 393 395 SelectInterpolationMethod("alphabetic"); 394 } 395 } 396 397 398 } 399 396 return true; 397 } 398 } 399 400 // Did not detect alpha 401 return false; 402 403 } 404 405 return true; 400 406 401 407 }
Note:
See TracChangeset
for help on using the changeset viewer.