Ignore:
Timestamp:
2017-09-13T23:24:50+02:00 (7 years ago)
Author:
bastiK
Message:

see #15229 - use Config.getPref() wherever possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/CredentialDialog.java

    r12821 r12846  
    4242import org.openstreetmap.josm.io.auth.AbstractCredentialsAgent;
    4343import org.openstreetmap.josm.io.auth.CredentialsAgentResponse;
     44import org.openstreetmap.josm.spi.preferences.Config;
    4445import org.openstreetmap.josm.tools.ImageProvider;
    4546import org.openstreetmap.josm.tools.InputMapUtils;
     
    355356            tfUserName.setToolTipText(tr("Please enter the user name for authenticating at your proxy server"));
    356357            tfPassword.setToolTipText(tr("Please enter the password for authenticating at your proxy server"));
    357             lblHeading.setText(
    358                     "<html>" + tr("Authenticating at the HTTP proxy ''{0}'' failed. Please enter a valid username and a valid password.",
    359                             Main.pref.get(DefaultProxySelector.PROXY_HTTP_HOST) + ':' +
    360                             Main.pref.get(DefaultProxySelector.PROXY_HTTP_PORT)) + "</html>");
     358            lblHeading.setText("<html>" + tr("Authenticating at the HTTP proxy ''{0}'' failed. Please enter a valid username and a valid password.",
     359                            Config.getPref().get(DefaultProxySelector.PROXY_HTTP_HOST) + ':' +
     360                            Config.getPref().get(DefaultProxySelector.PROXY_HTTP_PORT)) + "</html>");
    361361            lblWarning.setText("<html>" +
    362362                    tr("Warning: depending on the authentication method the proxy server uses the password may be transferred unencrypted.")
Note: See TracChangeset for help on using the changeset viewer.