Ignore:
Timestamp:
2017-08-24T00:15:51+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.map and Main.isDisplayingMapView(). Replacements: gui.MainApplication.getMap() / gui.MainApplication.isDisplayingMapView()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/DeleteAction.java

    r12504 r12630  
    99import java.util.Collection;
    1010
    11 import org.openstreetmap.josm.Main;
    1211import org.openstreetmap.josm.data.osm.OsmPrimitive;
     12import org.openstreetmap.josm.gui.MainApplication;
     13import org.openstreetmap.josm.gui.MapFrame;
    1314import org.openstreetmap.josm.tools.Shortcut;
    1415
     
    3031    @Override
    3132    public void actionPerformed(ActionEvent e) {
    32         if (!isEnabled() || !Main.map.mapView.isActiveLayerVisible())
     33        MapFrame map = MainApplication.getMap();
     34        if (!isEnabled() || !map.mapView.isActiveLayerVisible())
    3335            return;
    34         Main.map.mapModeDelete.doActionPerformed(e);
     36        map.mapModeDelete.doActionPerformed(e);
    3537    }
    3638
Note: See TracChangeset for help on using the changeset viewer.