Changeset 1397 in josm for trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
- Timestamp:
- 2009-02-14T12:25:54+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
r1195 r1397 24 24 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask; 25 25 import org.openstreetmap.josm.data.osm.DataSet; 26 import org.openstreetmap.josm.gui.ExtendedDialog; 26 27 import org.openstreetmap.josm.gui.layer.GpxLayer; 27 28 import org.openstreetmap.josm.gui.layer.OsmDataLayer; … … 55 56 layer.setSelected(Main.pref.getBoolean("download.newlayer")); 56 57 JPanel all = new JPanel(new GridBagLayout()); 57 all.add(new JLabel("Enter URL to download:"), GBC.eol()); 58 all.add(new JLabel(tr("Enter URL to download:")), GBC.eol()); 58 59 JTextField urltext = new JTextField(40); 59 60 all.add(urltext, GBC.eol()); 60 61 all.add(layer, GBC.eol()); 61 int answer = JOptionPane.showConfirmDialog(Main.parent, all, tr("Download Location"), JOptionPane.OK_CANCEL_OPTION); 62 if (answer != JOptionPane.OK_OPTION) 63 return; 62 int answer = new ExtendedDialog(Main.parent, 63 tr("Download Location"), 64 all, 65 new String[] {tr("Download URL"), tr("Cancel")}, 66 new String[] {"download.png", "cancel.png"}).getValue(); 67 if (answer != 1) return; 64 68 openUrl(layer.isSelected(), urltext.getText()); 65 69 }
Note:
See TracChangeset
for help on using the changeset viewer.
