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/Main.java

    r12629 r12630  
    6060import org.openstreetmap.josm.data.projection.Projection;
    6161import org.openstreetmap.josm.data.projection.ProjectionChangeListener;
     62import org.openstreetmap.josm.gui.MainApplication;
    6263import org.openstreetmap.josm.gui.MainMenu;
    6364import org.openstreetmap.josm.gui.MainPanel;
     
    119120     *
    120121     * @return <code>true</code> if JOSM currently displays a map view
    121      */
     122     * @deprecated use {@link org.openstreetmap.josm.gui.MainApplication#isDisplayingMapView()}
     123     */
     124    @Deprecated
    122125    public static boolean isDisplayingMapView() {
    123126        return map != null && map.mapView != null;
     
    151154     * There should be no need to access this to access any map data. Use {@link #layerManager} instead.
    152155     *
     156     * @deprecated Use {@link org.openstreetmap.josm.gui.MainApplication#getMap()} instead
    153157     * @see MainPanel
    154158     */
     159    @Deprecated
    155160    public static MapFrame map;
    156161
     
    11351140            }
    11361141            if (newValue != null && oldBounds != null) {
    1137                 Main.map.mapView.zoomTo(oldBounds);
     1142                MainApplication.getMap().mapView.zoomTo(oldBounds);
    11381143            }
    11391144            /* TODO - remove layers with fixed projection */
Note: See TracChangeset for help on using the changeset viewer.