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/relation/DeleteRelationsAction.java

    r10453 r12630  
    1010import org.openstreetmap.josm.actions.mapmode.DeleteAction;
    1111import org.openstreetmap.josm.data.osm.Relation;
     12import org.openstreetmap.josm.gui.MainApplication;
     13import org.openstreetmap.josm.gui.MapFrame;
    1214import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    1315import org.openstreetmap.josm.tools.ImageProvider;
     
    3537        DeleteAction.deleteRelations(layer, toDelete);
    3638        // clear selection after deletion
    37         if (Main.map.relationListDialog != null)
    38                 Main.map.relationListDialog.selectRelations(null);
     39        MapFrame map = MainApplication.getMap();
     40        if (map.relationListDialog != null)
     41            map.relationListDialog.selectRelations(null);
    3942    }
    4043
Note: See TracChangeset for help on using the changeset viewer.