Changeset 2512 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2009-11-24T10:45:04+01:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 35 edited
-
AbstractMergeAction.java (modified) (1 diff)
-
AddNodeAction.java (modified) (1 diff)
-
AutoScaleAction.java (modified) (1 diff)
-
CloseChangesetAction.java (modified) (4 diffs)
-
CombineWayAction.java (modified) (10 diffs)
-
DownloadAction.java (modified) (3 diffs)
-
DownloadReferrersAction.java (modified) (5 diffs)
-
ExtensionFileFilter.java (modified) (11 diffs)
-
GpxExportAction.java (modified) (3 diffs)
-
JosmAction.java (modified) (1 diff)
-
MergeNodesAction.java (modified) (5 diffs)
-
MergeSelectionAction.java (modified) (1 diff)
-
OpenFileAction.java (modified) (1 diff)
-
OpenLocationAction.java (modified) (1 diff)
-
OrthogonalizeAction.java (modified) (6 diffs)
-
PasteAction.java (modified) (1 diff)
-
PasteTagsAction.java (modified) (1 diff)
-
RenameLayerAction.java (modified) (1 diff)
-
SaveActionBase.java (modified) (1 diff)
-
SelectAllAction.java (modified) (1 diff)
-
UnGlueAction.java (modified) (1 diff)
-
UnselectAllAction.java (modified) (2 diffs)
-
UpdateSelectionAction.java (modified) (2 diffs)
-
UploadAction.java (modified) (7 diffs)
-
UploadSelectionAction.java (modified) (5 diffs)
-
downloadtasks/AbstractDownloadTask.java (modified) (2 diffs)
-
downloadtasks/DownloadGpsTask.java (modified) (3 diffs)
-
downloadtasks/DownloadOsmTaskList.java (modified) (5 diffs)
-
downloadtasks/DownloadTask.java (modified) (7 diffs)
-
downloadtasks/PostDownloadHandler.java (modified) (3 diffs)
-
mapmode/DeleteAction.java (modified) (4 diffs)
-
mapmode/SelectAction.java (modified) (1 diff)
-
mapmode/ZoomAction.java (modified) (1 diff)
-
search/SearchAction.java (modified) (2 diffs)
-
upload/RelationUploadOrderHook.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AbstractMergeAction.java
r2343 r2512 25 25 public abstract class AbstractMergeAction extends JosmAction { 26 26 27 28 27 /** 29 28 * the list cell renderer used to render layer list entries 30 * 29 * 31 30 */ 32 31 static public class LayerListCellRenderer extends DefaultListCellRenderer { -
trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java
r2323 r2512 81 81 82 82 } 83 -
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r2477 r2512 98 98 * such layer exists, either because the layer list dialog is not yet created 99 99 * or because no layer is selected. 100 * 100 * 101 101 * @return the first selected layer in the layer list dialog 102 102 */ -
trunk/src/org/openstreetmap/josm/actions/CloseChangesetAction.java
r2323 r2512 49 49 } 50 50 51 52 51 protected void onPostDownloadOpenChangesets(DownloadOpenChangesetsTask task) { 53 52 if (task.isCancelled() || task.getLastException() != null) return; … … 75 74 } 76 75 77 78 76 private class DownloadOpenChangesetsTask extends PleaseWaitRunnable { 79 77 … … 85 83 86 84 /** 87 * 85 * 88 86 * @param model provides the user id of the current user and accepts the changesets 89 87 * after download … … 116 114 * Fetch the user info from the server. This is necessary if we don't know 117 115 * the users id yet 118 * 116 * 119 117 * @return the user info 120 118 * @throws OsmTransferException thrown in case of any communication exception -
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r2381 r2512 90 90 } 91 91 92 93 92 public void combineWays(Collection<Way> ways) { 94 93 … … 219 218 * This is a collection of relations referring to at least one out of a set of 220 219 * ways. 221 * 220 * 222 221 * 223 222 */ … … 230 229 231 230 /** 232 * 231 * 233 232 * @param ways a collection of ways 234 233 */ … … 246 245 /** 247 246 * build the sets of referring relations from the relations in the dataset <code>ds</code> 248 * 247 * 249 248 * @param ds the data set 250 249 */ … … 273 272 /** 274 273 * Replies the set of referring relations 275 * 274 * 276 275 * @return the set of referring relations 277 276 */ … … 286 285 /** 287 286 * Replies the set of referring relations for a specific way 288 * 287 * 289 288 * @return the set of referring relations 290 289 */ … … 412 411 } 413 412 414 415 413 static public class NodeGraph { 416 414 static public List<NodePair> buildNodePairs(Way way, boolean directed) { … … 480 478 private HashMap<Node, List<NodePair>> successors; 481 479 private HashMap<Node, List<NodePair>> predecessors; 482 483 480 484 481 protected void rememberSuccessor(NodePair pair) { … … 612 609 /** 613 610 * Tries to find a spanning path starting from node <code>startNode</code>. 614 * 611 * 615 612 * Traverses the path in depth-first order. 616 * 613 * 617 614 * @param startNode the start node 618 615 * @return the spanning path; null, if no path is found … … 641 638 * Tries to find a path through the graph which visits each edge (i.e. 642 639 * the segment of a way) exactly one. 643 * 640 * 644 641 * @return the path; null, if no path was found 645 642 */ -
trunk/src/org/openstreetmap/josm/actions/DownloadAction.java
r2335 r2512 28 28 public class DownloadAction extends JosmAction { 29 29 private static final Logger logger = Logger.getLogger(DownloadAction.class.getName()); 30 30 31 31 public DownloadAction() { 32 32 super(tr("Download from OSM..."), "download", tr("Download map data from the OSM server."), … … 41 41 if (! dialog.isCanceled()) { 42 42 dialog.rememberSettings(); 43 Bounds area = dialog.getSelectedDownloadArea(); 43 Bounds area = dialog.getSelectedDownloadArea(); 44 44 if (dialog.isDownloadOsmData()) { 45 45 DownloadOsmTask task = new DownloadOsmTask(); … … 52 52 Main.worker.submit(new PostDownloadHandler(task, future)); 53 53 } 54 } 55 } 54 } 55 } 56 56 } -
trunk/src/org/openstreetmap/josm/actions/DownloadReferrersAction.java
r2434 r2512 74 74 * Downloads the primitives referring to the primitive given by <code>id</code> and 75 75 * <code>type</code>. 76 * 76 * 77 77 * 78 78 * @param targetLayer the target layer. Must not be null. … … 118 118 /** 119 119 * constructor 120 * 120 * 121 121 * @param targetLayer the target layer for the downloaded primitives. Must not be null. 122 122 * @param children the collection of child primitives for which parents are to be downloaded 123 * 123 * 124 124 */ 125 125 public DownloadReferrersTask(OsmDataLayer targetLayer, Collection<OsmPrimitive> children) { … … 142 142 /** 143 143 * constructor 144 * 144 * 145 145 * @param targetLayer the target layer for the downloaded primitives. Must not be null. 146 146 * @param primitives the collection of children for which parents are to be downloaded. Children 147 147 * are specified by their id and their type. 148 * 148 * 149 149 */ 150 150 public DownloadReferrersTask(OsmDataLayer targetLayer, Map<Long, OsmPrimitiveType> children) { … … 167 167 /** 168 168 * constructor 169 * 169 * 170 170 * @param targetLayer the target layer. Must not be null. 171 171 * @param id the primitive id. id > 0 required. … … 174 174 * @exception IllegalArgumentException thrown if type == null 175 175 * @exception IllegalArgumentException thrown if targetLayer == null 176 * 176 * 177 177 */ 178 178 public DownloadReferrersTask(OsmDataLayer targetLayer, long id, OsmPrimitiveType type) throws IllegalArgumentException { -
trunk/src/org/openstreetmap/josm/actions/ExtensionFileFilter.java
r2367 r2512 38 38 */ 39 39 public static ArrayList<FileImporter> importers; 40 40 41 41 public static ArrayList<FileExporter> exporters; 42 42 43 43 // add some file types only if the relevant classes are there; 44 44 // this gives us the option to painlessly drop them from the .jar … … 48 48 49 49 importers = new ArrayList<FileImporter>(); 50 50 51 51 String[] importerNames = { 52 52 "org.openstreetmap.josm.io.OsmImporter", … … 62 62 Class klass = Class.forName(classname); 63 63 importers.add((FileImporter)klass.newInstance()); 64 } catch (Exception e) {} 64 } catch (Exception e) {} 65 65 } 66 66 … … 78 78 Class klass = Class.forName(classname); 79 79 exporters.add((FileExporter)klass.newInstance()); 80 } catch (Exception e) {} 80 } catch (Exception e) {} 81 81 } 82 82 } … … 85 85 private final String description; 86 86 private final String defaultExtension; 87 88 87 89 88 static protected void sort(List<ExtensionFileFilter> filters) { … … 105 104 * The list is ordered according to their description, an {@see AllFormatsImporter} 106 105 * is append at the end. 107 * 106 * 108 107 * @return an ordered list of {@see ExtensionFileFilter}s for importing. 109 108 */ … … 124 123 * The list is ordered according to their description, an {@see AllFormatsImporter} 125 124 * is append at the end. 126 * 125 * 127 126 * @return an ordered list of {@see ExtensionFileFilter}s for exporting. 128 127 */ … … 141 140 /** 142 141 * Replies the default {@see ExtensionFileFilter} for a given extension 143 * 142 * 144 143 * @param extension the extension 145 144 * @return the default {@see ExtensionFileFilter} for a given extension … … 156 155 /** 157 156 * Replies the default {@see ExtensionFileFilter} for a given extension 158 * 157 * 159 158 * @param extension the extension 160 159 * @return the default {@see ExtensionFileFilter} for a given extension … … 172 171 * Applies the choosable {@see FileFilter} to a {@see JFileChooser} before using the 173 172 * file chooser for selecting a file for reading. 174 * 173 * 175 174 * @param fileChooser the file chooser 176 175 * @param extension the default extension … … 186 185 * Applies the choosable {@see FileFilter} to a {@see JFileChooser} before using the 187 186 * file chooser for selecting a file for writing. 188 * 187 * 189 188 * @param fileChooser the file chooser 190 189 * @param extension the default extension -
trunk/src/org/openstreetmap/josm/actions/GpxExportAction.java
r2343 r2512 24 24 */ 25 25 public class GpxExportAction extends DiskAccessAction { 26 27 26 28 27 public GpxExportAction() { … … 61 60 * <code>layer</code> must not be null. <code>layer</code> must be an instance of 62 61 * {@see OsmDataLayer} or {@see GpxLayer}. 63 * 62 * 64 63 * @param layer the layer 65 64 * @exception IllegalArgumentException thrown if layer is null … … 94 93 @Override 95 94 protected void updateEnabledState() { 96 boolean check = 97 Main.isDisplayingMapView() 95 boolean check = 96 Main.isDisplayingMapView() 98 97 && Main.map.mapView.getActiveLayer() != null; 99 98 if(!check) { -
trunk/src/org/openstreetmap/josm/actions/JosmAction.java
r2305 r2512 101 101 } 102 102 103 104 105 103 /** 106 104 * needs to be overridden to be useful -
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r2414 r2512 40 40 /** 41 41 * Merges a collection of nodes into one node. 42 * 42 * 43 43 */ 44 44 public class MergeNodesAction extends JosmAction { … … 77 77 * The last selected node will become the target node the remaining 78 78 * nodes are merged to. 79 * 79 * 80 80 * @param candidates the collection of candidate nodes 81 81 * @return the selected target node … … 92 92 * Merges the nodes in <code>node</code> onto one of the nodes. Uses the dataset 93 93 * managed by <code>layer</code> as reference. 94 * 94 * 95 95 * @param layer the reference data layer. Must not be null. 96 96 * @param nodes the collection of nodes. Ignored if null. … … 98 98 * @throws IllegalArgumentException thrown if layer is null 99 99 * @throws IllegalArgumentException thrown if targetNode is null 100 * 100 * 101 101 */ 102 102 public static Command mergeNodes(OsmDataLayer layer, Collection<Node> nodes, Node targetNode) throws IllegalArgumentException{ … … 115 115 /** 116 116 * Fixes the parent ways referring to one of the nodes. 117 * 117 * 118 118 * Replies null, if the ways could not be fixed, i.e. because a way would have to be deleted 119 119 * which is referred to by a relation. 120 * 120 * 121 121 * @param backreferences the backreference data set 122 122 * @param nodesToDelete the collection of nodes to be deleted -
trunk/src/org/openstreetmap/josm/actions/MergeSelectionAction.java
r2323 r2512 40 40 } 41 41 42 43 42 public void actionPerformed(ActionEvent e) { 44 43 if (getEditLayer() == null || getEditLayer().data.getSelected().isEmpty()) -
trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java
r2323 r2512 38 38 Shortcut.registerShortcut("system:open", tr("File: {0}", tr("Open...")), KeyEvent.VK_O, Shortcut.GROUP_MENU)); 39 39 putValue("help", ht("/Action/OpenFile")); 40 40 41 41 } 42 42 -
trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
r2323 r2512 44 44 /** 45 45 * Restore the current history from the preferences 46 * 46 * 47 47 * @param cbHistory 48 48 */ -
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r2323 r2512 171 171 else { 172 172 JOptionPane.showMessageDialog( 173 Main.parent, 173 Main.parent, 174 174 "<html><h3>"+tr(ex.getMessage())+"<br><hr><h3>"+tr("Usage")+tr(USAGE), 175 175 tr("Selected Elements cannot be orthogonalized"), … … 196 196 * the mean value of their y-Coordinates. 197 197 * - The same for vertical segments. 198 * 5. Rotate back. 198 * 5. Rotate back. 199 199 * 200 200 **/ 201 private static void orthogonalize(ArrayList<WayData> wayDataList, ArrayList<Node> headingNodes) 202 throws InvalidUserInputException 201 private static void orthogonalize(ArrayList<WayData> wayDataList, ArrayList<Node> headingNodes) 202 throws InvalidUserInputException 203 203 { 204 204 // find average heading … … 269 269 final HashSet<Node> s = new HashSet<Node>(allNodes); 270 270 int s_size = s.size(); 271 for (int dummy = 0; dummy < s_size; ++ dummy) { 272 if (s.isEmpty()) break; 271 for (int dummy = 0; dummy < s_size; ++ dummy) { 272 if (s.isEmpty()) break; 273 273 final Node dummy_n = s.iterator().next(); // pick arbitrary element of s 274 274 … … 333 333 if (headingNodes.contains(n)) { // The heading nodes should not have changed 334 334 final double EPSILON = 1E-6; 335 if (Math.abs(dx) > Math.abs(EPSILON * tmp.east()) || 335 if (Math.abs(dx) > Math.abs(EPSILON * tmp.east()) || 336 336 Math.abs(dy) > Math.abs(EPSILON * tmp.east())) { 337 337 throw new AssertionError(); 338 338 } 339 } 339 } 340 340 else { 341 341 OrthogonalizeAction.rememberMovements.put(n, new EastNorth(dx, dy)); … … 346 346 Main.map.repaint(); 347 347 } 348 349 348 350 349 /** … … 510 509 * Exception: unsuited user input 511 510 */ 512 private static class InvalidUserInputException extends Exception { 511 private static class InvalidUserInputException extends Exception { 513 512 InvalidUserInputException(String message) { 514 513 super(message); -
trunk/src/org/openstreetmap/josm/actions/PasteAction.java
r2349 r2512 70 70 double offsetNorth = mPosition.north() - (maxNorth + minNorth)/2.0; 71 71 72 73 74 72 // Make a copy of pasteBuffer and map from old id to copied data id 75 73 List<PrimitiveData> bufferCopy = new ArrayList<PrimitiveData>(); -
trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java
r2323 r2512 254 254 } 255 255 256 257 256 public void actionPerformed(ActionEvent e) { 258 257 if (getCurrentDataSet().getSelected().isEmpty()) -
trunk/src/org/openstreetmap/josm/actions/RenameLayerAction.java
r2323 r2512 38 38 this.file = file; 39 39 this.layer = layer; 40 this.putValue("help", ht("/Action/RenameLayer")); 40 this.putValue("help", ht("/Action/RenameLayer")); 41 41 } 42 42 -
trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java
r2343 r2512 130 130 } 131 131 132 133 132 /** 134 133 * Check the data set if it would be empty on save. It is empty, if it contains -
trunk/src/org/openstreetmap/josm/actions/SelectAllAction.java
r2323 r2512 26 26 /** 27 27 * Refreshes the enabled state 28 * 28 * 29 29 */ 30 30 @Override -
trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
r2497 r2512 339 339 } 340 340 341 342 341 /** 343 342 * dupe a single node into as many nodes as there are ways using it, OR -
trunk/src/org/openstreetmap/josm/actions/UnselectAllAction.java
r2323 r2512 37 37 KeyEvent.VK_ESCAPE, Shortcut.GROUP_DIRECT).getKeyStroke(), 38 38 tr("Unselect All")); 39 39 40 40 putValue("help", ht("/Action/UnselectAll")); 41 41 } … … 48 48 /** 49 49 * Refreshes the enabled state 50 * 50 * 51 51 */ 52 52 @Override -
trunk/src/org/openstreetmap/josm/actions/UpdateSelectionAction.java
r2471 r2512 148 148 149 149 /** 150 * 150 * 151 151 * @param toUpdate a collection of primitives to update from the server 152 152 */ … … 209 209 } 210 210 } 211 212 211 213 212 @Override -
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r2480 r2512 50 50 import org.xml.sax.SAXException; 51 51 52 53 52 /** 54 53 * Action that opens a connection to the osm server and uploads all changes. … … 94 93 /** 95 94 * Registers an upload hook. Adds the hook at the first position of the upload hooks. 96 * 95 * 97 96 * @param hook the upload hook. Ignored if null. 98 97 */ … … 106 105 /** 107 106 * Unregisters an upload hook. Removes the hook from the list of upload hooks. 108 * 107 * 109 108 * @param hook the upload hook. Ignored if null. 110 109 */ … … 342 341 } 343 342 344 345 343 /** 346 344 * Handles the case where deleting a node failed because it is still in use in … … 466 464 } 467 465 468 469 466 /** 470 467 * error handler for any exception thrown during upload … … 574 571 575 572 /** 576 * 573 * 577 574 * @param layer the OSM data layer for which data is uploaded 578 575 * @param toUpload the collection of primitives to upload … … 600 597 * Retries to recover the upload operation from an exception which was thrown because 601 598 * an uploaded primitive was already deleted on the server. 602 * 599 * 603 600 * @param e the exception throw by the API 604 601 * @param monitor a progress monitor -
trunk/src/org/openstreetmap/josm/actions/UploadSelectionAction.java
r2399 r2512 142 142 * Uploads the primitives in <code>toUpload</code> to the server. Only 143 143 * uploads primitives which are either new, modified or deleted. 144 * 144 * 145 145 * Also checks whether <code>toUpload</code> has to be extended with 146 146 * deleted parents in order to avoid precondition violations on the server. 147 * 147 * 148 148 * @param layer the data layer from which we upload a subset of primitives 149 149 * @param toUpload the primitives to upload. If null or empty returns immediatelly … … 178 178 * new primitive has to be uploaded as well, even if it isn't included in the 179 179 * list of candidate primitives. 180 * 180 * 181 181 */ 182 182 static class UploadHullBuilder implements Visitor { … … 228 228 * Builds the "hull" of primitives to be uploaded given a base collection 229 229 * of osm primitives. 230 * 230 * 231 231 * @param base the base collection. Must not be null. 232 232 * @return the "hull" … … 252 252 253 253 /** 254 * 254 * 255 255 * @param layer the data layer for which a collection of selected primitives is uploaded 256 256 * @param toUpload the collection of primitives to upload … … 291 291 * Replies the collection of deleted OSM primitives for which we have to check whether 292 292 * there are dangling references on the server. 293 * 293 * 294 294 * @return 295 295 */ -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/AbstractDownloadTask.java
r2322 r2512 30 30 } 31 31 32 33 32 protected void rememberErrorMessage(String message) { 34 33 errorMessages.add(message); … … 39 38 } 40 39 41 42 40 public List<Object> getErrorObjects() { 43 41 return errorMessages; -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java
r2343 r2512 29 29 return Main.worker.submit(downloadTask); 30 30 } 31 31 32 32 public Future<?> loadUrl(boolean a,java.lang.String b, ProgressMonitor progressMonitor) { 33 33 return null; … … 40 40 } 41 41 } 42 43 42 44 43 class DownloadTask extends PleaseWaitRunnable { … … 87 86 private Layer findMergeLayer() { 88 87 boolean merge = Main.pref.getBoolean("download.gps.mergeWithLocal", false); 89 if (!Main.isDisplayingMapView()) 88 if (!Main.isDisplayingMapView()) 90 89 return null; 91 90 Layer active = Main.map.mapView.getActiveLayer(); -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTaskList.java
r2381 r2512 38 38 * a list in the end. 39 39 * @author xeen 40 * 40 * 41 41 */ 42 42 public class DownloadOsmTaskList { … … 101 101 * Replies the set of ids of all complete, non-new primitives (i.e. those with ! 102 102 * primitive.incomplete) 103 * 103 * 104 104 * @return the set of ids of all complete, non-new primitives 105 105 */ … … 127 127 * Updates the local state of a set of primitives (given by a set of primitive ids) with the 128 128 * state currently held on the server. 129 * 129 * 130 130 * @param potentiallyDeleted a set of ids to check update from the server 131 131 */ … … 149 149 * yes, retrieves the current state on the server and checks whether the primitives are indeed 150 150 * deleted on the server. 151 * 151 * 152 152 * @param potentiallyDeleted a set of primitives (given by their ids) 153 153 */ … … 196 196 /** 197 197 * Replies the set of primitive ids which have been downloaded by this task list 198 * 198 * 199 199 * @return the set of primitive ids which have been downloaded by this task list 200 200 */ -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadTask.java
r2330 r2512 8 8 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 9 9 10 11 10 public interface DownloadTask { 12 11 /** … … 16 15 * Set progressMonitor to {@see NullProgressMonitor#INSTANCE} if progress information is to 17 16 * be discarded. 18 * 17 * 19 18 * You can wait for the asynchronous download task to finish by synchronizing on the returned 20 19 * {@see Future}, but make sure not to freeze up JOSM. Example: 21 20 * <pre> 22 21 * Future<?> future = task.download(...); 23 * // DON'T run this on the Swing EDT or JOSM will freeze 24 * future.get(); // waits for the dowload task to complete 22 * // DON'T run this on the Swing EDT or JOSM will freeze 23 * future.get(); // waits for the dowload task to complete 25 24 * </pre> 26 * 25 * 27 26 * The following example uses a pattern which is better suited if a task is launched from 28 27 * the Swing EDT: … … 40 39 * Main.worker.submit(runAfterTask); 41 40 * </pre> 42 * 41 * 43 42 * @param newLayer true, if the data is to be downloaded into a new layer. If false, the task 44 43 * selects one of the existing layers as download layer, preferably the active layer. 45 * 44 * 46 45 * @param downloadArea the area to download 47 46 * @param progressMonitor the progressMonitor … … 56 55 * Set progressMonitor to {@see NullProgressMonitor#INSTANCE} if progress information is to 57 56 * be discarded. 58 57 59 58 * @param newLayer newLayer true, if the data is to be downloaded into a new layer. If false, the task 60 59 * selects one of the existing layers as download layer, preferably the active layer. … … 62 61 * @param progressMonitor the progressMonitor 63 62 * @return the future representing the asynchronous task 64 * 63 * 65 64 * @see #download(boolean, Bounds, ProgressMonitor) 66 65 */ … … 69 68 /** 70 69 * Replies the error objects of the task. Empty list, if no error messages are available. 71 * 70 * 72 71 * Error objects are either {@see String}s with error messages or {@see Exception}s. 73 72 * … … 78 77 /** 79 78 * Cancels the asynchronous download task. 80 * 79 * 81 80 */ 82 81 public void cancel(); -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/PostDownloadHandler.java
r2332 r2512 14 14 import org.openstreetmap.josm.gui.ExceptionDialogUtil; 15 15 import org.openstreetmap.josm.tools.ExceptionUtil; 16 17 16 18 17 public class PostDownloadHandler implements Runnable { … … 46 45 } 47 46 } 48 49 47 50 48 /** … … 59 57 this.futures.addAll(futures); 60 58 } 61 59 62 60 public void run() { 63 61 // wait for all downloads task to finish (by waiting for the futures -
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r2343 r2512 124 124 } 125 125 126 127 126 @Override public void actionPerformed(ActionEvent e) { 128 127 super.actionPerformed(e); … … 165 164 * highlights. For now, only the cursor is enabled because highlighting 166 165 * requires WaySegment to be highlightable. 167 * 166 * 168 167 * Normally the mouse event also contains the modifiers. However, when the 169 168 * mouse is not moved and only modifier keys are pressed, no mouse event … … 171 170 * mouseevent. Instead we copy the previous event and only update the 172 171 * modifiers. 173 * 172 * 174 173 * @param MouseEvent 175 174 * @parm int modifiers … … 286 285 * Deletes the relation in the context of the given layer. Also notifies 287 286 * {@see RelationDialogManager} and {@see OsmDataLayer#fireDataChange()} events. 288 * 287 * 289 288 * @param layer the layer in whose context the relation is deleted. Must not be null. 290 289 * @param toDelete the relation to be deleted. Must not be null. -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r2402 r2512 274 274 } 275 275 276 277 276 @Override public void mouseMoved(MouseEvent e) { 278 277 // Mac OSX simulates with ctrl + mouse 1 the second mouse button hence no dragging events get fired. -
trunk/src/org/openstreetmap/josm/actions/mapmode/ZoomAction.java
r1814 r2512 39 39 private final SelectionManager selectionManager; 40 40 41 42 41 /** 43 42 * Construct a ZoomAction without a label. -
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r2467 r2512 35 35 36 36 public static final int DEFAULT_SEARCH_HISTORY_SIZE = 10; 37 38 37 39 38 public static enum SearchMode { … … 331 330 /** 332 331 * Refreshes the enabled state 333 * 332 * 334 333 */ 335 334 @Override -
trunk/src/org/openstreetmap/josm/actions/upload/RelationUploadOrderHook.java
r2198 r2512 28 28 * relations are uploaded before parent relations. It also checks for cyclic 29 29 * dependencies in the list of new relations. 30 * 30 * 31 31 * 32 32 */ … … 38 38 /** 39 39 * builds the panel which warns users about a cyclic dependency 40 * 40 * 41 41 * @param dep the list of relations with a cyclic dependency 42 42 * @return the panel … … 68 68 /** 69 69 * Warns the user if a cyclic dependency is detected 70 * 70 * 71 71 * @param e the cyclic dependency exception 72 72 */
Note:
See TracChangeset
for help on using the changeset viewer.
