Ignore:
Timestamp:
2017-08-22T22:26:32+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate all Main logging methods and introduce suitable replacements in Logging for most of them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/server/ProxyPreferencesPanel.java

    r11553 r12620  
    3737import org.openstreetmap.josm.io.auth.CredentialsManager;
    3838import org.openstreetmap.josm.tools.GBC;
     39import org.openstreetmap.josm.tools.Logging;
    3940
    4041/**
     
    345346
    346347        if (pp.equals(ProxyPolicy.USE_SYSTEM_SETTINGS) && !DefaultProxySelector.willJvmRetrieveSystemProxies()) {
    347             Main.warn(tr("JOSM is configured to use proxies from the system setting, but the JVM is not configured to retrieve them. " +
     348            Logging.warn(tr("JOSM is configured to use proxies from the system setting, but the JVM is not configured to retrieve them. " +
    348349                         "Resetting preferences to ''No proxy''"));
    349350            pp = ProxyPolicy.NO_PROXY;
     
    364365            }
    365366        } catch (CredentialsAgentException e) {
    366             Main.error(e);
     367            Logging.error(e);
    367368            tfProxyHttpUser.setText("");
    368369            tfProxyHttpPassword.setText("");
     
    436437            cm.store(RequestorType.PROXY, tfProxyHttpHost.getText(), pa);
    437438        } catch (CredentialsAgentException e) {
    438             Main.error(e);
     439            Logging.error(e);
    439440        }
    440441    }
Note: See TracChangeset for help on using the changeset viewer.