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

    r10179 r12620  
    1515import javax.swing.JPanel;
    1616
    17 import org.openstreetmap.josm.Main;
    1817import org.openstreetmap.josm.gui.widgets.JosmPasswordField;
    1918import org.openstreetmap.josm.gui.widgets.JosmTextField;
     
    2322import org.openstreetmap.josm.io.auth.CredentialsAgentException;
    2423import org.openstreetmap.josm.io.auth.CredentialsManager;
     24import org.openstreetmap.josm.tools.Logging;
    2525
    2626/**
     
    107107            }
    108108        } catch (CredentialsAgentException e) {
    109             Main.error(e);
    110             Main.warn(tr("Failed to retrieve OSM credentials from credential manager."));
    111             Main.warn(tr("Current credential manager is of type ''{0}''", cm.getClass().getName()));
     109            Logging.error(e);
     110            Logging.warn(tr("Failed to retrieve OSM credentials from credential manager."));
     111            Logging.warn(tr("Current credential manager is of type ''{0}''", cm.getClass().getName()));
    112112            tfOsmUserName.setText("");
    113113            tfOsmPassword.setText("");
     
    127127            cm.store(RequestorType.SERVER, OsmApi.getOsmApi().getHost(), pa);
    128128        } catch (CredentialsAgentException e) {
    129             Main.error(e);
    130             Main.warn(tr("Failed to save OSM credentials to credential manager."));
    131             Main.warn(tr("Current credential manager is of type ''{0}''", cm.getClass().getName()));
     129            Logging.error(e);
     130            Logging.warn(tr("Failed to save OSM credentials to credential manager."));
     131            Logging.warn(tr("Current credential manager is of type ''{0}''", cm.getClass().getName()));
    132132        }
    133133    }
Note: See TracChangeset for help on using the changeset viewer.