Ignore:
Timestamp:
2009-05-30T13:58:30+02:00 (17 years ago)
Author:
stoecker
Message:

cleanup group settings in preferences

File:
1 edited

Legend:

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

    r1608 r1628  
    1515import org.openstreetmap.josm.data.osm.visitor.NameVisitor;
    1616import org.openstreetmap.josm.gui.historycombobox.JHistoryComboBox;
    17 import org.openstreetmap.josm.gui.historycombobox.StringUtils;
    1817
    1918/**
     
    3433     */
    3534    public Collection<OsmPrimitive> processed;
    36    
    3735
    3836    private OsmApi api = new OsmApi();
    39    
     37
    4038    private static final int MSECS_PER_SECOND = 1000;
    4139    private static final int SECONDS_PER_MINUTE = 60;
     
    6260
    6361    /**
    64      * Send the dataset to the server. 
     62     * Send the dataset to the server.
    6563     * @param the_version version of the data set
    6664     * @param list list of objects to send
     
    6866    public void uploadOsm(String the_version, Collection<OsmPrimitive> list) {
    6967        processed = new LinkedList<OsmPrimitive>();
    70        
     68
    7169        // initialize API. Abort upload in case of configuration or network
    7270        // errors
     
    8785            return;
    8886        }
    89        
    9087
    9188        Main.pleaseWaitDlg.progress.setMaximum(list.size());
     
    9390
    9491        boolean useChangesets = api.hasChangesetSupport();
    95        
     92
    9693        // controls whether or not we try and upload the whole bunch in one go
    9794        boolean useDiffUploads = Main.pref.getBoolean("osm-server.atomic-upload",
     
    103100                // add the last entered comment to the changeset
    104101                String cmt = "";
    105                 List<String> history = StringUtils.stringToList(Main.pref.get(UploadAction.HISTORY_KEY), JHistoryComboBox.DELIM);
     102                List<String> history = new LinkedList<String>(Main.pref.getCollection(UploadAction.HISTORY_KEY, null));
    106103                if(history.size() > 0) {
    107104                    cmt = history.get(0);
     
    161158            // has successfully cancelled the data upload
    162159            //
    163             return; 
     160            return;
    164161        }
    165        
    166         JOptionPane.showMessageDialog(Main.parent, 
     162
     163        JOptionPane.showMessageDialog(Main.parent,
    167164            /* tr("Error during upload: ") + */ e.getMessage());
    168165    }
Note: See TracChangeset for help on using the changeset viewer.