src/share/classes/java/awt/EventDispatchThread.java

Print this page

        

*** 31,41 **** import java.util.ArrayList; import sun.util.logging.PlatformLogger; import sun.awt.dnd.SunDragSourceContextPeer; - import sun.awt.EventQueueDelegate; /** * EventDispatchThread is a package-private AWT class which takes * events off the EventQueue and dispatches them to the appropriate * AWT components. --- 31,40 ----
*** 156,176 **** void pumpOneEventForFilters(int id) { AWTEvent event = null; boolean eventOK = false; try { EventQueue eq = null; - EventQueueDelegate.Delegate delegate = null; do { // EventQueue may change during the dispatching eq = getEventQueue(); - delegate = EventQueueDelegate.getDelegate(); - if (delegate != null && id == ANY_EVENT) { - event = delegate.getNextEvent(eq); - } else { event = (id == ANY_EVENT) ? eq.getNextEvent() : eq.getNextEvent(id); - } eventOK = true; synchronized (eventFilters) { for (int i = eventFilters.size() - 1; i >= 0; i--) { EventFilter f = eventFilters.get(i); --- 155,169 ----
*** 192,209 **** if (eventLog.isLoggable(PlatformLogger.Level.FINEST)) { eventLog.finest("Dispatching: " + event); } - Object handle = null; - if (delegate != null) { - handle = delegate.beforeDispatch(event); - } eq.dispatchEvent(event); - if (delegate != null) { - delegate.afterDispatch(event, handle); - } } catch (ThreadDeath death) { doDispatch = false; throw death; } --- 185,195 ----