Changeset 8855 in josm for trunk/src/org/openstreetmap/josm/gui/JosmUserIdentityManager.java
- Timestamp:
- 2015-10-10T21:01:42+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/JosmUserIdentityManager.java
r8513 r8855 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.Component;7 6 import java.text.MessageFormat; 8 7 … … 65 64 !Main.isOffline(OnlineResource.OSM_API)) { 66 65 try { 67 instance.initFromOAuth( Main.parent);66 instance.initFromOAuth(); 68 67 } catch (Exception e) { 69 68 Main.error(e); … … 211 210 * Initializes the user identity manager from OAuth request of user details. 212 211 * This method should be called if {@code osm-server.auth-method} is set to {@code oauth}. 213 * @param parent component relative to which the {@link PleaseWaitDialog} is displayed.214 212 * @see #initFromPreferences 215 213 * @since 5434 216 214 */ 217 public void initFromOAuth( Component parent) {215 public void initFromOAuth() { 218 216 try { 219 217 UserInfo info = new OsmServerUserInfoReader().fetchUserInfo(NullProgressMonitor.INSTANCE); … … 283 281 if (OsmApi.isUsingOAuth()) { 284 282 try { 285 getInstance().initFromOAuth( Main.parent);283 getInstance().initFromOAuth(); 286 284 } catch (Exception e) { 287 285 Main.error(e);
Note:
See TracChangeset
for help on using the changeset viewer.