How to handle non blocking JFace Dialog [message #893302] |
Tue, 03 July 2012 09:43  |
Eclipse User |
|
|
|
Hi,
I am trying to use JFace Dialog in non blocking mode as my application's
operation mode is JEE. As Dialog is non blocking I need attach callback
handler similar to the DialogCallback passed DialogUtil.open method.
DialogUtil only works with SWT Dialog whereas I want my JFace Dialog to
work.
I thinking of attaching a DialogCallback handler to my extended Dialog
class (extended from Jface Dialog) and overriding the close method of
dialog class. Within the Dialog#close() method, I would make a call to
DialogCallback#dialogClosed() method.
Is this a correct approach? Or there is a better way to handle this.
Thanks,
Raj
|
|
|
|
Re: How to handle non blocking JFace Dialog [message #893338 is a reply to message #893330] |
Tue, 03 July 2012 11:24  |
Eclipse User |
|
|
|
Thanks Rüdiger. I have implemented this and it is working fine.
Raj
On Tuesday 03 July 2012 08:23 PM, Rüdiger Herrmann wrote:
> Raj,
>
> you are on the right track. I am afraid this is currently the only way
> to work with JFace dialogs.
>
> Regards,
> Rüdiger
>
> On 03.07.2012 15:43, Raj Saini wrote:
>> Hi,
>>
>> I am trying to use JFace Dialog in non blocking mode as my application's
>> operation mode is JEE. As Dialog is non blocking I need attach callback
>> handler similar to the DialogCallback passed DialogUtil.open method.
>> DialogUtil only works with SWT Dialog whereas I want my JFace Dialog to
>> work.
>>
>> I thinking of attaching a DialogCallback handler to my extended Dialog
>> class (extended from Jface Dialog) and overriding the close method of
>> dialog class. Within the Dialog#close() method, I would make a call to
>> DialogCallback#dialogClosed() method.
>>
>> Is this a correct approach? Or there is a better way to handle this.
>>
>> Thanks,
>>
>> Raj
>
|
|
|
Powered by
FUDForum. Page generated in 0.04202 seconds