Changeset 12479 in osm for applications/editors/josm/plugins/lakewalker/src/org
- Timestamp:
- 2008-12-22T16:52:22+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/lakewalker/src/org/openstreetmap/josm/plugins/lakewalker/LakewalkerAction.java
r12255 r12479 43 43 protected String name; 44 44 protected Cursor oldCursor; 45 protected List<Node> selectedNodes;46 45 protected Thread executeThread; 47 46 protected boolean cancel; … … 69 68 } 70 69 71 selectedNodes = new ArrayList<Node>(); 72 for (OsmPrimitive osm : Main.ds.getSelected()) { 73 if (osm instanceof Node) { 74 Node node = (Node) osm; 75 selectedNodes.add(node); 76 } 77 } 78 79 if (selectedNodes.isEmpty()) { 80 oldCursor = Main.map.mapView.getCursor(); 81 Main.map.mapView.setCursor(ImageProvider.getCursor("crosshair", "lakewalker-sml")); 82 Main.map.mapView.addMouseListener(this); 83 } 84 else { 85 lakewalk(selectedNodes); 86 } 87 } 88 89 90 70 oldCursor = Main.map.mapView.getCursor(); 71 Main.map.mapView.setCursor(ImageProvider.getCursor("crosshair", "lakewalker-sml")); 72 Main.map.mapView.addMouseListener(this); 73 } 74 91 75 /** 92 76 * check for presence of cache folder and trim cache to specified size. … … 315 299 } 316 300 317 protected void lakewalk(List nodes) {318 319 }320 321 301 public void mouseClicked(MouseEvent e) { 322 302 Main.map.mapView.removeMouseListener(this);
Note:
See TracChangeset
for help on using the changeset viewer.