Ignore:
Timestamp:
2018-08-11T17:51:12+02:00 (3 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate all Main methods related to network features. New NetworkManager class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r14119 r14121  
    6767import org.openstreetmap.josm.gui.widgets.JMultilineLabel;
    6868import org.openstreetmap.josm.gui.widgets.JosmTextArea;
     69import org.openstreetmap.josm.io.NetworkManager;
    6970import org.openstreetmap.josm.io.OfflineAccessException;
    7071import org.openstreetmap.josm.io.OnlineResource;
     
    530531
    531532    private static boolean checkOfflineAccess() {
    532         if (Main.isOffline(OnlineResource.ALL)) {
     533        if (NetworkManager.isOffline(OnlineResource.ALL)) {
    533534            return false;
    534535        }
    535         if (Main.isOffline(OnlineResource.JOSM_WEBSITE)) {
     536        if (NetworkManager.isOffline(OnlineResource.JOSM_WEBSITE)) {
    536537            for (String updateSite : Main.pref.getPluginSites()) {
    537538                try {
Note: See TracChangeset for help on using the changeset viewer.