Changeset 9246 in josm for trunk/src/org/openstreetmap/josm/gui/io
- Timestamp:
- 2016-01-01T22:21:21+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/io
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/AbstractUploadTask.java
r8540 r9246 53 53 * Synchronizes the local state of an {@link OsmPrimitive} with its state on the 54 54 * server. The method uses an individual GET for the primitive. 55 * 55 * @param type the primitive type 56 56 * @param id the primitive ID 57 57 */ … … 192 192 * Handles the case that a conflict was detected while uploading where we don't 193 193 * know what {@link OsmPrimitive} actually caused the conflict (for whatever reason) 194 * 194 * @param changesetId changeset ID 195 * @param d changeset date 195 196 */ 196 197 protected void handleUploadConflictForClosedChangeset(long changesetId, Date d) { … … 211 212 * Handles the case where deleting a node failed because it is still in use in 212 213 * a non-deleted way on the server. 214 * @param e exception 215 * @param conflict conflict 213 216 */ 214 217 protected void handleUploadPreconditionFailedConflict(OsmApiException e, Pair<OsmPrimitive, Collection<OsmPrimitive>> conflict) { -
trunk/src/org/openstreetmap/josm/gui/io/LayerNameAndFilePathTableCell.java
r8846 r9246 121 121 } 122 122 123 /** adds layer name label to (this) using the given info. Returns tooltip that 124 * should be added to the panel **/ 123 /** 124 * Adds layer name label to (this) using the given info. Returns tooltip that should be added to the panel 125 * @param info information, user preferences and save/upload states of the layer 126 * @return tooltip that should be added to the panel 127 */ 125 128 private String addLblLayerName(SaveLayerInfo info) { 126 129 lblLayerName.setIcon(info.getLayer().getIcon()); … … 130 133 } 131 134 132 /** adds filename label to (this) using the given info. Returns tooltip that 133 * should be added to the panel */ 135 /** 136 * Adds filename label to (this) using the given info. Returns tooltip that should be added to the panel 137 * @param info information, user preferences and save/upload states of the layer 138 * @return tooltip that should be added to the panel 139 */ 134 140 private String addLblFilename(SaveLayerInfo info) { 135 141 String tooltip = ""; … … 157 163 } 158 164 159 /** makes the given path fit lblFilename, appends ellipsis on the left if it doesn’t fit. 160 * Idea: /home/user/josm → …/user/josm → …/josm; and take the first one that fits */ 165 /** 166 * Makes the given path fit lblFilename, appends ellipsis on the left if it doesn’t fit. 167 * Idea: /home/user/josm → …/user/josm → …/josm; and take the first one that fits 168 * @param t complete path 169 * @return shorter path 170 */ 161 171 private String makePathFit(String t) { 162 172 boolean hasEllipsis = false; -
trunk/src/org/openstreetmap/josm/gui/io/TagSettingsPanel.java
r8846 r9246 80 80 } 81 81 82 /** 83 * Initialize panel from changeset. 84 * @param cs changeset 85 */ 82 86 public void initFromChangeset(Changeset cs) { 83 87 Map<String, String> tags = getDefaultTags(); … … 103 107 /** 104 108 * Replies the map with the current tags in the tag editor model. 105 * 109 * @param keepEmpty {@code true} to keep empty tags 106 110 * @return the map with the current tags in the tag editor model. 107 111 */ … … 110 114 } 111 115 116 /** 117 * Replies the map with the default tags. 118 * @return the map with the default tags 119 */ 112 120 public Map<String, String> getDefaultTags() { 113 121 Map<String, String> tags = new HashMap<>(); … … 116 124 } 117 125 126 /** 127 * Sets the map with the default tags. 128 * @param tags the map with the default tags 129 */ 118 130 public void setDefaultTags(Map<String, String> tags) { 119 131 defaultTags.clear();
Note:
See TracChangeset
for help on using the changeset viewer.