Changeset 1691 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-06-24T20:42:27+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r1688 r1691 79 79 super(tr("Upload to OSM..."), "upload", tr("Upload all changes to the OSM server."), 80 80 Shortcut.registerShortcut("file:upload", tr("File: {0}", tr("Upload to OSM...")), KeyEvent.VK_U, Shortcut.GROUPS_ALT1+Shortcut.GROUP_HOTKEY), true); 81 82 /** 83 * Checks server capabilities before upload. 84 */ 85 uploadHooks.add(new ApiPreconditionChecker()); 81 86 82 87 /** -
trunk/src/org/openstreetmap/josm/io/Capabilities.java
r1665 r1691 15 15 } 16 16 17 public boolean isDefind(String element, String attribute) { 17 public boolean isDefined(String element, String attribute) { 18 18 if (! capabilities.containsKey(element)) return false; 19 19 HashMap<String, String> e = capabilities.get(element); … … 29 29 } 30 30 31 public Double getDouble(String element, String attribute) { 31 /** 32 * replies the value of configuration item in the capabilities as 33 * double value 34 * 35 * @param element the name of the element 36 * @param attribute the name of the attribute 37 * @return the value; null, if the respective configuration item doesn't exist 38 * @throws NumberFormatException if the value is not a valid double 39 */ 40 public Double getDouble(String element, String attribute) throws NumberFormatException { 32 41 String s = get(element, attribute); 33 42 if (s == null) return null; -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r1690 r1691 327 327 328 328 String diff = duv.getDocument(); 329 String diffresult = sendRequest("POST", "changeset/" + changeset.id + "/upload", diff);330 329 try { 330 String diffresult = sendRequest("POST", "changeset/" + changeset.id + "/upload", diff); 331 331 DiffResultReader.parseDiffResult(diffresult, list, processed, duv.getNewIdMap(), Main.pleaseWaitDlg); 332 332 } catch(Exception e) { … … 496 496 ); 497 497 } 498 499 /** 500 * returns the API capabilities; null, if the API is not initialized yet 501 * 502 * @return the API capabilities 503 */ 504 public Capabilities getCapabilities() { 505 return capabilities; 506 } 498 507 } -
trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java
r1682 r1691 112 112 } 113 113 } catch (Exception ee) { 114 ee.printStackTrace(); 114 115 // ignore nested exception 115 116 }
Note:
See TracChangeset
for help on using the changeset viewer.