Changeset 6316 in josm for trunk/src/org/openstreetmap/josm/actions/AlignInLineAction.java
- Timestamp:
- 2013-10-07T20:18:17+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AlignInLineAction.java
r6246 r6316 32 32 public final class AlignInLineAction extends JosmAction { 33 33 34 /** 35 * Constructs a new {@code AlignInLineAction}. 36 */ 34 37 public AlignInLineAction() { 35 38 super(tr("Align Nodes in Line"), "alignline", tr("Move the selected nodes in to a line."), … … 39 42 40 43 // the joy of single return values only... 41 private void nodePairFurthestApart( ArrayList<Node> nodes, Node[] resultOut) {44 private void nodePairFurthestApart(List<Node> nodes, Node[] resultOut) { 42 45 if(resultOut.length < 2) 43 46 throw new IllegalArgumentException(); … … 107 110 List<Node> selectedNodes = new ArrayList<Node>(getCurrentDataSet().getSelectedNodes()); 108 111 Collection<Way> selectedWays = getCurrentDataSet().getSelectedWays(); 109 ArrayList<Node> nodes = new ArrayList<Node>();112 List<Node> nodes = new ArrayList<Node>(); 110 113 111 114 //// Decide what to align based on selection:
Note:
See TracChangeset
for help on using the changeset viewer.