Changeset 4483 in josm


Ignore:
Timestamp:
Oct 2, 2011 12:34:11 AM (20 months ago)
Author:
Don-vip
Message:

GPX export: Add ODbL 1.0 in licenses preset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/GpxExporter.java

    r4263 r4483  
    253253        predefined.addActionListener(new ActionListener(){ 
    254254            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); 
    257263                l.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); 
    258264                int answer = JOptionPane.showConfirmDialog( 
     
    267273                final String[] urls = { 
    268274                        "http://creativecommons.org/licenses/by-sa/2.5", 
     275                        "http://opendatacommons.org/licenses/odbl/1.0", 
    269276                        "public domain", 
    270277                        "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"}; 
    272279                String license = ""; 
    273280                for (int i : l.getSelectedIndices()) { 
    274                     if (i == 1) { 
     281                    if (i == 2) { 
    275282                        license = "public domain"; 
    276283                        break; 
Note: See TracChangeset for help on using the changeset viewer.