Changeset 5419 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2012-08-10T23:50:05+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r5418 r5419 650 650 651 651 /** 652 * Create or update data mod fication command whle dragging mouse - implementation of652 * Create or update data modification command while dragging mouse - implementation of 653 653 * continuous moving, scaling and rotation 654 654 * @param currentEN - mouse position 655 * @return 655 * @return status of action (<code>true</code> when action was performed) 656 656 */ 657 657 private boolean updateCommandWhileDragging(EastNorth currentEN) { … … 709 709 710 710 /** 711 * Adapt last move command (if it is suitab ble) to work with next drag, startedd at point startEN711 * Adapt last move command (if it is suitable) to work with next drag, started at point startEN 712 712 */ 713 713 private void useLastMoveCommandIfPossible() { … … 732 732 } 733 733 734 /** 735 * Present warning in case of large and possibly unwanted movements and undo 736 * unwanted movements. 737 * 738 * @param e the mouse event causing the action (mouse released) 739 */ 734 740 private void confirmOrUndoMovement(MouseEvent e) { 735 741 int max = Main.pref.getInteger("warn.move.maxelements", 20), limit = max; … … 764 770 } 765 771 766 /** Merges the selected nodes to the one closest to the given mouse position iff the control 772 /** 773 * Merges the selected nodes to the one closest to the given mouse position iff the control 767 774 * key is pressed. If there is no such node, no action will be done and no error will be 768 * reported. If there is, it will execute the merge and add it to the undo buffer. */ 775 * reported. If there is, it will execute the merge and add it to the undo buffer. 776 */ 769 777 final private void mergePrims(Point p) { 770 778 Collection<Node> selNodes = getCurrentDataSet().getSelectedNodes(); … … 781 789 } 782 790 783 /** tries to find a node to merge to when in move-merge mode for the current mouse 784 * position. Either returns the node or null, if no suitable one is nearby. */ 791 /** 792 * Tries to find a node to merge to when in move-merge mode for the current mouse 793 * position. Either returns the node or null, if no suitable one is nearby. 794 */ 785 795 final private Node findNodeToMergeTo(Point p) { 786 796 Collection<Node> target = mv.getNearestNodes(p,
Note:
See TracChangeset
for help on using the changeset viewer.