Ignore:
Timestamp:
2017-08-24T22:53:50+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.getLayerManager(). Replacement: gui.MainApplication.getLayerManager()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/SelectionManager.java

    r12630 r12636  
    1818import javax.swing.Action;
    1919
    20 import org.openstreetmap.josm.Main;
    2120import org.openstreetmap.josm.actions.SelectByInternalPointAction;
    2221import org.openstreetmap.josm.data.Bounds;
     
    183182    @Override
    184183    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) {
    186185            SelectByInternalPointAction.performSelection(MainApplication.getMap().mapView.getEastNorth(e.getX(), e.getY()),
    187186                    (e.getModifiersEx() & MouseEvent.SHIFT_DOWN_MASK) != 0,
     
    382381        } else {
    383382            // nodes
    384             for (Node n : Main.getLayerManager().getEditDataSet().getNodes()) {
     383            for (Node n : MainApplication.getLayerManager().getEditDataSet().getNodes()) {
    385384                if (n.isSelectable() && selectionResult.contains(nc.getPoint2D(n))) {
    386385                    selection.add(n);
     
    389388
    390389            // ways
    391             for (Way w : Main.getLayerManager().getEditDataSet().getWays()) {
     390            for (Way w : MainApplication.getLayerManager().getEditDataSet().getWays()) {
    392391                if (!w.isSelectable() || w.getNodesCount() == 0) {
    393392                    continue;
Note: See TracChangeset for help on using the changeset viewer.