- Timestamp:
- 2016-01-02T12:25:57+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/oauth
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/RetrieveAccessTokenTask.java
r9078 r9256 15 15 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 16 16 import org.openstreetmap.josm.gui.help.HelpUtil; 17 import org.openstreetmap.josm.gui.util.GuiHelper; 17 18 import org.openstreetmap.josm.io.OsmTransferCanceledException; 18 19 import org.openstreetmap.josm.io.OsmTransferException; … … 87 88 } catch (OsmTransferCanceledException e) { 88 89 return; 89 } catch ( OsmOAuthAuthorizationException e) {90 } catch (final OsmOAuthAuthorizationException e) { 90 91 Main.error(e); 91 alertRetrievingAccessTokenFailed(e); 92 GuiHelper.runInEDT(new Runnable() { 93 @Override 94 public void run() { 95 alertRetrievingAccessTokenFailed(e); 96 } 97 }); 92 98 accessToken = null; 93 99 } finally { -
trunk/src/org/openstreetmap/josm/gui/oauth/SemiAutomaticAuthorizationUI.java
r9059 r9256 20 20 import javax.swing.JLabel; 21 21 import javax.swing.JPanel; 22 import javax.swing.SwingUtilities;23 22 24 23 import org.openstreetmap.josm.Main; … … 26 25 import org.openstreetmap.josm.gui.SideButton; 27 26 import org.openstreetmap.josm.gui.preferences.server.OAuthAccessTokenHolder; 27 import org.openstreetmap.josm.gui.util.GuiHelper; 28 28 import org.openstreetmap.josm.gui.widgets.HtmlPanel; 29 29 import org.openstreetmap.josm.gui.widgets.JMultilineLabel; … … 403 403 if (task.getRequestToken() == null) return; 404 404 requestToken = task.getRequestToken(); 405 SwingUtilities.invokeLater(new Runnable() {405 GuiHelper.runInEDT(new Runnable() { 406 406 @Override 407 407 public void run() { … … 439 439 if (task.isCanceled()) return; 440 440 if (task.getAccessToken() == null) return; 441 setAccessToken(task.getAccessToken()); 442 SwingUtilities.invokeLater(new Runnable() { 441 GuiHelper.runInEDT(new Runnable() { 443 442 @Override 444 443 public void run() { 444 setAccessToken(task.getAccessToken()); 445 445 transitionToShowAccessToken(); 446 446 }
Note:
See TracChangeset
for help on using the changeset viewer.