[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: Event Queue?

Hi,

you can get it from any widget by calling getDisplay() or by calling
Display#getCurrent() which is a static method.

Tom

Mirco Dunker schrieb:
> Hi,
> 
> I don't have much experience in swt, how can i get the current Display?
> The running Display wasn't created by myself.
> 
> Regards,
> Mirco
> 
> Tom Schindl schrieb:
>> Hi,
>>
>> In SWT you use: Display#addFilter()
>>
>> Tom
>>
>> Mirco Dunker schrieb:
>>> Hi,
>>>
>>> i want to trace some SWT Events. With AWT its really easy to do this:
>>>
>>> Toolkit.getDefaultToolkit().getSystemEventQueue().push(
>>>             new EventQueue() {
>>>     protected void dispatchEvent(AWTEvent event) {
>>>         //do something
>>>         super.dispatchEvent(event);
>>>     }
>>> });
>>>
>>> How can i do this for SWT?
>>>
>>> ­Regards,
>>> Mirco
>>