Changeset 12636 in josm for trunk/src/org/openstreetmap/josm/gui/SelectionManager.java
- Timestamp:
- 2017-08-24T22:53:50+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/SelectionManager.java
r12630 r12636 18 18 import javax.swing.Action; 19 19 20 import org.openstreetmap.josm.Main;21 20 import org.openstreetmap.josm.actions.SelectByInternalPointAction; 22 21 import org.openstreetmap.josm.data.Bounds; … … 183 182 @Override 184 183 public void mousePressed(MouseEvent e) { 185 if (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() > 1 && Main .getLayerManager().getEditDataSet() != null) {184 if (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() > 1 && MainApplication.getLayerManager().getEditDataSet() != null) { 186 185 SelectByInternalPointAction.performSelection(MainApplication.getMap().mapView.getEastNorth(e.getX(), e.getY()), 187 186 (e.getModifiersEx() & MouseEvent.SHIFT_DOWN_MASK) != 0, … … 382 381 } else { 383 382 // nodes 384 for (Node n : Main .getLayerManager().getEditDataSet().getNodes()) {383 for (Node n : MainApplication.getLayerManager().getEditDataSet().getNodes()) { 385 384 if (n.isSelectable() && selectionResult.contains(nc.getPoint2D(n))) { 386 385 selection.add(n); … … 389 388 390 389 // ways 391 for (Way w : Main .getLayerManager().getEditDataSet().getWays()) {390 for (Way w : MainApplication.getLayerManager().getEditDataSet().getWays()) { 392 391 if (!w.isSelectable() || w.getNodesCount() == 0) { 393 392 continue;
Note:
See TracChangeset
for help on using the changeset viewer.