Changeset 1575 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2009-05-05T16:49:28+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java
r1559 r1575 6 6 import java.util.Collection; 7 7 import java.util.LinkedList; 8 import java.util.List; 8 9 9 10 import javax.swing.JOptionPane; … … 13 14 import org.openstreetmap.josm.data.osm.OsmPrimitive; 14 15 import org.openstreetmap.josm.data.osm.visitor.NameVisitor; 16 import org.openstreetmap.josm.gui.historycombobox.JHistoryComboBox; 17 import org.openstreetmap.josm.gui.historycombobox.StringUtils; 15 18 16 19 /** … … 78 81 // create changeset if required 79 82 try { 80 if (useChangesets) api.createChangeset(UploadAction.lastCommitComment); 83 if (useChangesets) { 84 // add the last entered comment to the changeset 85 String cmt = ""; 86 List<String> history = StringUtils.stringToList(Main.pref.get(UploadAction.HISTORY_KEY), JHistoryComboBox.DELIM); 87 if(history.size() > 0) { 88 cmt = history.get(0); 89 } 90 api.createChangeset(cmt); 91 } 81 92 } catch (OsmTransferException ex) { 82 93 dealWithTransferException(ex);
Note:
See TracChangeset
for help on using the changeset viewer.