Ignore:
Timestamp:
2012-06-24T19:14:38+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #4493, fix #7750: conflict dialog, nodes and members tab: allow selection via double-click, allow zoom via contexual menu, plus various fix in EDT violations

File:
1 edited

Legend:

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

    r5233 r5297  
    77import java.awt.Container;
    88import java.awt.Image;
     9import java.lang.reflect.InvocationTargetException;
    910
    1011import javax.swing.Icon;
     
    4344        }
    4445    }
     46
     47    public static void runInEDTAndWait(Runnable task) {
     48        if (SwingUtilities.isEventDispatchThread()) {
     49            task.run();
     50        } else {
     51            try {
     52                SwingUtilities.invokeAndWait(task);
     53            } catch (InterruptedException e) {
     54                e.printStackTrace();
     55            } catch (InvocationTargetException e) {
     56                e.printStackTrace();
     57            }
     58        }
     59    }
    4560   
    4661    /**
Note: See TracChangeset for help on using the changeset viewer.