Changeset 3285 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-05-29T21:12:42+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DownloadPrimitiveAction.java
r3224 r3285 12 12 import javax.swing.JCheckBox; 13 13 import javax.swing.JLabel; 14 import javax.swing.JOptionPane; 14 15 import javax.swing.JPanel; 15 16 import javax.swing.KeyStroke; … … 86 87 dialog.setDefaultButton(1); 87 88 dialog.configureContextsensitiveHelp("/Action/DownloadObject", true /* show help button */); 89 cbType.setSelectedIndex(Main.pref.getInteger("downloadprimitive.lasttype", 0)); 88 90 dialog.showDialog(); 89 91 if (dialog.getValue() != 1) return; 92 Main.pref.putInteger("downloadprimitive.lasttype", cbType.getSelectedIndex()); 90 93 Main.pref.put("downloadprimitive.referrers", referrers.isSelected()); 91 94 Main.pref.put("download.newlayer", layer.isSelected()); 92 download(layer.isSelected(), cbType.getType(), tfId.getOsmId(), referrers.isSelected()); 95 int id = tfId.getOsmId(); 96 if(id <= 0) 97 JOptionPane.showMessageDialog( 98 Main.parent, 99 tr("Invalid ID specified. Cannot download object."), 100 tr("Information"), 101 JOptionPane.INFORMATION_MESSAGE 102 ); 103 else 104 download(layer.isSelected(), cbType.getType(), id, referrers.isSelected()); 93 105 } 94 106
Note:
See TracChangeset
for help on using the changeset viewer.