Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to handle non blocking JFace Dialog
How to handle non blocking JFace Dialog [message #893302] Tue, 03 July 2012 13:43 Go to next message
Raj Saini is currently offline Raj SainiFriend
Messages: 53
Registered: July 2009
Member
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 #893330 is a reply to message #893302] Tue, 03 July 2012 14:53 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
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

--
Rüdiger Herrmann
http://codeaffine.com
Re: How to handle non blocking JFace Dialog [message #893338 is a reply to message #893330] Tue, 03 July 2012 15:24 Go to previous message
Raj Saini is currently offline Raj SainiFriend
Messages: 53
Registered: July 2009
Member
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
>
Previous Topic:Single sourced app in JBoss AS 7
Next Topic:RAP work on Windows but not working on Linux
Goto Forum:
  


Current Time: Thu Apr 25 00:49:14 GMT 2024

Powered by FUDForum. Page generated in 0.03250 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top