Changeset 4695 in josm for trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java
- Timestamp:
- 2011-12-22T11:49:23+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java
r3707 r4695 4 4 import java.awt.Component; 5 5 import java.awt.Container; 6 7 import javax.swing.SwingUtilities; 6 8 7 9 /** … … 24 26 } 25 27 28 public static void runInEDT(Runnable task) { 29 if (SwingUtilities.isEventDispatchThread()) { 30 task.run(); 31 } else { 32 SwingUtilities.invokeLater(task); 33 } 34 } 35 26 36 }
Note:
See TracChangeset
for help on using the changeset viewer.