Changeset 5373 in josm
- Timestamp:
- 2012-07-28T14:42:43+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DownloadPrimitiveAction.java
r5372 r5373 319 319 String buf = Utils.getClipboardContent(); 320 320 if (buf != null) { 321 322 323 324 325 326 327 328 329 330 331 332 333 321 if (buf.contains("node")) cbType.setSelectedIndex(0); 322 if (buf.contains("way")) cbType.setSelectedIndex(1); 323 if (buf.contains("relation")) cbType.setSelectedIndex(2); 324 String[] res = buf.split("/"); 325 String txt; 326 if (res.length>0) { 327 txt = res[res.length-1]; 328 if (txt.isEmpty() && txt.length()>1) txt=res[res.length-2]; 329 } else { 330 txt=buf; 331 } 332 tfId.setText(txt); 333 tfId.clearTextIfInvalid(); 334 334 } 335 335 }
Note:
See TracChangeset
for help on using the changeset viewer.