[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] How to monitor all Events handled by an SWT app


We are working on an SWT automated testing framework that will be able to both record a user's interactions with the GUI and play them back as a series of high-level semantic actions.  The action-generation is coming along fine, and now we're looking into the recording side of things.  

The main piece of the puzzle is gaining access to all events that are handled by the GUI.  In the AWT world, we could just look at the AWTEventQueue.  With SWT, how can this be done?  A couple ideas come to mind- monitoring Display.MSG and processing these low-level messages into high-level events, or adding listeners to all the widgets in the application, recording the events that arrive, and passing them on to the real listeners.  I see all sorts of problems with the former, and I can't get anything akin to the latter to work.  

Does anyone have any suggestions?


Kevin