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/gui/MainPanel.java

    r11713 r12630  
    4444     * @param showMap If the map should be displayed.
    4545     */
     46    @SuppressWarnings("deprecation")
    4647    protected synchronized void updateContent(boolean showMap) {
    4748        GuiHelper.assertCallFromEdt();
     
    6566            map = null;
    6667            Main.map = map;
     68            MainApplication.map = map;
    6769            add(getGettingStarted(), BorderLayout.CENTER);
    6870        }
     
    8385    }
    8486
     87    @SuppressWarnings("deprecation")
    8588    private MapFrame createNewMapFrame() {
    8689        MapFrame mapFrame = new MapFrame(null);
    8790        // Required by many components.
    8891        Main.map = mapFrame;
     92        MainApplication.map = mapFrame;
    8993
    9094        mapFrame.fillPanel(this);
Note: See TracChangeset for help on using the changeset viewer.