Changeset 2074 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2009-09-07T00:01:31+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r2065 r2074 19 19 import java.util.List; 20 20 import java.util.Map; 21 import java.util.Properties; 21 22 import java.util.logging.Logger; 22 23 import java.util.regex.Matcher; … … 246 247 ); 247 248 switch(ret) { 248 case JOptionPane.CLOSED_OPTION: return; 249 case JOptionPane.CANCEL_OPTION: return; 250 case 0: synchronizePrimitive(id); break; 251 case 1: synchronizeDataSet(); break; 252 default: 253 // should not happen 254 throw new IllegalStateException(tr("unexpected return value. Got {0}", ret)); 249 case JOptionPane.CLOSED_OPTION: return; 250 case JOptionPane.CANCEL_OPTION: return; 251 case 0: synchronizePrimitive(id); break; 252 case 1: synchronizeDataSet(); break; 253 default: 254 // should not happen 255 throw new IllegalStateException(tr("unexpected return value. Got {0}", ret)); 255 256 } 256 257 } … … 286 287 ); 287 288 switch(ret) { 288 case JOptionPane.CLOSED_OPTION: return; 289 case 1: return; 290 case 0: synchronizeDataSet(); break; 291 default: 292 // should not happen 293 throw new IllegalStateException(tr("unexpected return value. Got {0}", ret)); 289 case JOptionPane.CLOSED_OPTION: return; 290 case 1: return; 291 case 0: synchronizeDataSet(); break; 292 default: 293 // should not happen 294 throw new IllegalStateException(tr("unexpected return value. Got {0}", ret)); 294 295 } 295 296 } … … 936 937 southTabbedPane.setTitleAt(1, tr("Tags of new changeset")); 937 938 Changeset cs = new Changeset(); 939 Properties sysProp = System.getProperties(); 940 Object ua = sysProp.get("http.agent"); 941 cs.put("created_by", (ua == null) ? "JOSM" : ua.toString()); 938 942 tagEditorPanel.getModel().initFromPrimitive(cs); 939 943 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
