Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/server/BasicAuthenticationPreferencesPanel.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/server/BasicAuthenticationPreferencesPanel.java
r10179 r12620 15 15 import javax.swing.JPanel; 16 16 17 import org.openstreetmap.josm.Main;18 17 import org.openstreetmap.josm.gui.widgets.JosmPasswordField; 19 18 import org.openstreetmap.josm.gui.widgets.JosmTextField; … … 23 22 import org.openstreetmap.josm.io.auth.CredentialsAgentException; 24 23 import org.openstreetmap.josm.io.auth.CredentialsManager; 24 import org.openstreetmap.josm.tools.Logging; 25 25 26 26 /** … … 107 107 } 108 108 } 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())); 112 112 tfOsmUserName.setText(""); 113 113 tfOsmPassword.setText(""); … … 127 127 cm.store(RequestorType.SERVER, OsmApi.getOsmApi().getHost(), pa); 128 128 } 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())); 132 132 } 133 133 }
Note:
See TracChangeset
for help on using the changeset viewer.