[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: Listening to events on a page

You could add a Display filter listener and listen for mousedown and such 
events, and then check what widget the source event is from.. other than 
that I don't know if there's a way to do what you want.

Emil

"Eric" <qizhang@xxxxxxxxxxx> wrote in message 
news:12f1f2bbc22f32fb3e911016944b0ab7$1@xxxxxxxxxxxxxxxxxx
> Hi,
>
> Is there a way to listen to all the events on a workbench page, without 
> manually adding listeners on every single widget on the page?
>
> For example, if any of the buttons on the page is pressed, a listener is 
> informed, and the listener is not manually added as listener on every 
> button on the page.
>
> I studied the swt source code and found each widget has its own 
> eventtable. so it may not be possible to listen all the events on all the 
> widgets, is this true?
>
> Thanks,
>
> Eric
>