Changeset 12284 in josm
- Timestamp:
- 2017-05-31T15:50:05+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadNotesTask.java
r11784 r12284 30 30 import org.xml.sax.SAXException; 31 31 32 /** Task for downloading notes */ 32 /** 33 * General task for downloading OSM notes. 34 * <p> 35 * It handles two URL patterns: API call and dump file export. 36 * @since 7531 37 */ 33 38 public class DownloadNotesTask extends AbstractDownloadTask<NoteData> { 34 39 -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadNotesUrlBoundsTask.java
r8624 r12284 9 9 import org.openstreetmap.josm.tools.OsmUrlToBounds; 10 10 11 /** 12 * Specialized task for downloading OSM notes within bounds. 13 * <p> 14 * It handles one URL pattern: openstreetmap website URL with {@code #map?} argument. 15 * @since 8195 16 */ 11 17 public class DownloadNotesUrlBoundsTask extends DownloadNotesTask { 12 18 -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadNotesUrlIdTask.java
r8855 r12284 10 10 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 11 11 12 /** 13 * Specialized task for downloading OSM notes by ID. 14 * <p> 15 * It handles one URL pattern: openstreetmap website URL with {@code /node/<id>} argument. 16 * @since 8195 17 */ 12 18 public class DownloadNotesUrlIdTask extends DownloadNotesTask { 13 19 -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmIdTask.java
r8624 r12284 16 16 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 17 17 18 /** 19 * Specialized task for downloading OSM objects by ID. 20 * <p> 21 * It handles one URL pattern: openstreetmap website URL with {@code /(node|way|relation)/<id>} argument. 22 * @since 8240 23 */ 18 24 public class DownloadOsmIdTask extends DownloadOsmTask { 19 25 -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/PostDownloadHandler.java
r10601 r12284 22 22 import org.openstreetmap.josm.tools.Utils; 23 23 24 /** 25 * The powst-download handler notifies user of potential errors that occurred. 26 * @since 2322 27 */ 24 28 public class PostDownloadHandler implements Runnable { 25 29 private final DownloadTask task; -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r12182 r12284 1315 1315 } 1316 1316 1317 /** 1318 * Undo the last command. Binded by default to backspace key. 1319 */ 1317 1320 public class BackSpaceAction extends AbstractAction { 1318 1321 -
trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java
r11993 r12284 117 117 } 118 118 119 /** 120 * Returns a short translated help message describing how this map mode can be used, to be displayed in status line. 121 * @return a short translated help message describing how this map mode can be used 122 */ 119 123 public String getModeHelpText() { 120 124 return ""; -
trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWays.java
r11385 r12284 22 22 23 23 /** 24 * Helper for ParallelWayAction24 * Helper for {@link ParallelWayAction}. 25 25 * 26 26 * @author Ole Jørgen Brønner (olejorgenb) … … 35 35 private final EastNorth[] normals; 36 36 37 // Need a reference way to determine the direction of the offset when we manage multiple ways 37 /** 38 * Constructs a new {@code ParallelWays}. 39 * @param sourceWays source ways 40 * @param copyTags whether tags should be copied 41 * @param refWayIndex Need a reference way to determine the direction of the offset when we manage multiple ways 42 */ 38 43 public ParallelWays(Collection<Way> sourceWays, boolean copyTags, int refWayIndex) { 39 44 // Possible/sensible to use PrimetiveDeepCopy here? … … 118 123 } 119 124 125 /** 126 * Determines if the nodes graph form a closed path 127 * @return {@code true} if the nodes graph form a closed path 128 */ 120 129 public boolean isClosedPath() { 121 130 return sortedNodes.get(0) == sortedNodes.get(sortedNodes.size() - 1); … … 169 178 } 170 179 180 /** 181 * Performs the action by adding a new sequence command to the undo/redo queue. 182 */ 171 183 public void commit() { 172 SequenceCommand undoCommand = new SequenceCommand("Make parallel way(s)", makeAddWayAndNodesCommandList()); 173 Main.main.undoRedo.add(undoCommand); 184 Main.main.undoRedo.add(new SequenceCommand("Make parallel way(s)", makeAddWayAndNodesCommandList())); 174 185 } 175 186 … … 195 206 } 196 207 208 /** 209 * Returns the resulting parallel ways. 210 * @return the resulting parallel ways 211 */ 197 212 public final List<Way> getWays() { 198 213 return ways; -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r12279 r12284 124 124 125 125 private boolean lassoMode; 126 p ublicboolean repeatedKeySwitchLassoOption;126 private boolean repeatedKeySwitchLassoOption; 127 127 128 128 // Cache previous mouse event (needed when only the modifier keys are
Note:
See TracChangeset
for help on using the changeset viewer.