Ignore:
Timestamp:
2011-12-22T11:49:23+01:00 (12 years ago)
Author:
bastiK
Message:

session: GpxImporter refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java

    r3707 r4695  
    44import java.awt.Component;
    55import java.awt.Container;
     6
     7import javax.swing.SwingUtilities;
    68
    79/**
     
    2426    }
    2527
     28    public static void runInEDT(Runnable task) {
     29        if (SwingUtilities.isEventDispatchThread()) {
     30            task.run();
     31        } else {
     32            SwingUtilities.invokeLater(task);
     33        }
     34    }
     35
    2636}
Note: See TracChangeset for help on using the changeset viewer.