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/io/BasicUploadSettingsPanel.java

    r12370 r12630  
    2828import org.openstreetmap.josm.Main;
    2929import org.openstreetmap.josm.data.osm.Changeset;
     30import org.openstreetmap.josm.gui.MainApplication;
    3031import org.openstreetmap.josm.gui.widgets.HistoryComboBox;
    3132import org.openstreetmap.josm.gui.widgets.JMultilineLabel;
     
    8485        sourceLabel.addHyperlinkListener(e -> {
    8586            if (HyperlinkEvent.EventType.ACTIVATED.equals(e.getEventType())) {
    86                 final String source = Main.map.mapView.getLayerInformationForSourceTag();
     87                final String source = MainApplication.getMap().mapView.getLayerInformationForSourceTag();
    8788                hcbUploadSource.setText(Utils.shortenString(source, Changeset.MAX_CHANGESET_TAG_LENGTH));
    8889                // Fix #9965
Note: See TracChangeset for help on using the changeset viewer.