Changeset 5452 in josm for trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java
- Timestamp:
- 2012-08-18T19:21:29+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java
r5422 r5452 24 24 import javax.swing.JTabbedPane; 25 25 import javax.swing.JTextField; 26 import javax.swing.SwingUtilities;27 26 import javax.swing.event.DocumentEvent; 28 27 import javax.swing.event.DocumentListener; … … 38 37 import org.openstreetmap.josm.gui.SideButton; 39 38 import org.openstreetmap.josm.gui.help.HelpUtil; 39 import org.openstreetmap.josm.gui.util.GuiHelper; 40 40 import org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator; 41 41 import org.openstreetmap.josm.gui.widgets.HtmlPanel; … … 519 519 }; 520 520 e.printStackTrace(); 521 if (SwingUtilities.isEventDispatchThread()) { 522 r.run(); 523 } else { 524 SwingUtilities.invokeLater(r); 525 } 521 GuiHelper.runInEDT(r); 526 522 } 527 523 … … 552 548 getProgressMonitor().worked(1); 553 549 if (canceled)return; 554 Runnable r =new Runnable() {550 GuiHelper.runInEDT(new Runnable() { 555 551 public void run() { 556 552 prepareUIForResultDisplay(); 557 553 setAccessToken(accessToken); 558 554 } 559 }; 560 if (SwingUtilities.isEventDispatchThread()) { 561 r.run(); 562 } else { 563 SwingUtilities.invokeLater(r); 564 } 555 }); 565 556 } catch(final OsmOAuthAuthorizationException e) { 566 557 handleException(e);
Note:
See TracChangeset
for help on using the changeset viewer.
