- Timestamp:
- 2011-10-02T00:34:11+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/GpxExporter.java
r4263 r4483 253 253 predefined.addActionListener(new ActionListener(){ 254 254 public void actionPerformed(ActionEvent e) { 255 JList l = new JList(new String[]{"Creative Commons By-SA", "public domain", "GNU Lesser Public License (LGPL)", "BSD License (MIT/X11)"}); 256 l.setVisibleRowCount(4); 255 final String[] licenses = { 256 "Creative Commons By-SA", 257 "Open Database License (ODbL)", 258 "public domain", 259 "GNU Lesser Public License (LGPL)", 260 "BSD License (MIT/X11)"}; 261 JList l = new JList(licenses); 262 l.setVisibleRowCount(licenses.length); 257 263 l.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); 258 264 int answer = JOptionPane.showConfirmDialog( … … 267 273 final String[] urls = { 268 274 "http://creativecommons.org/licenses/by-sa/2.5", 275 "http://opendatacommons.org/licenses/odbl/1.0", 269 276 "public domain", 270 277 "http://www.gnu.org/copyleft/lesser.html", 271 "http://www.opensource.org/licenses/bsd-license.php"};278 "http://www.opensource.org/licenses/bsd-license.php"}; 272 279 String license = ""; 273 280 for (int i : l.getSelectedIndices()) { 274 if (i == 1) {281 if (i == 2) { 275 282 license = "public domain"; 276 283 break;
Note:
See TracChangeset
for help on using the changeset viewer.