Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Application frozen while reloading (F5)
Application frozen while reloading (F5) [message #1245160] Thu, 13 February 2014 06:40 Go to next message
Eclipse UserFriend
Hello,

I'm having the following but. Tested with Eclipse 4.3.1 and RAP 2.1. Also tested using RAP Target Platforms from RAP 2.2 and 2.3M1

If one application containing a confirmation dialog in the WorkbenchAdvisor#preShutDown() method is reloaded (F5), the whole application is frozen.

Steps to reproduce it using the Demo application:

1. Open class DemoWorkbenchAdvisor.java
2. Override preShutDown method as follows:

/** {@inheritDoc} */
@Override
public boolean preShutdown()
{
boolean delete = true;
delete = MessageDialog.openQuestion(new Shell(),
"Application Exit", "Do you really want to close the application?");
return delete;
}

3. Try to close the application through File->Exit: Confirmation Dialog appears.
4. Press No. The application continues.
5. Try to refresh the browser tab. The application frozen. It is not possible to use the application anymore from the same browser, even with new tabs, until the frozen tab is closed.

It is not recommend to use Eclipse browser for this test because the whole Eclipse PDE will become frozen.

Regards,
David
Re: Application frozen while reloading (F5) [message #1245618 is a reply to message #1245160] Thu, 13 February 2014 22:11 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

Did you try ExitConfirmation service?
ExitConfirmation service = RWT.getClient().getService( ExitConfirmation.class );
service.setMessage( "Do you really wanna leave the party?" );

http://eclipse.org/rap/developers-guide/devguide.php?topic=navigation.html&version=2.0

May it will be a workaround for you.

Best regards,
Yury.
Re: Application frozen while reloading (F5) [message #1245969 is a reply to message #1245618] Fri, 14 February 2014 09:31 Go to previous message
Eclipse UserFriend
Thank you very much.
I had to put additional classes in my fragment but it is working now Smile
Previous Topic:Multiline Checkbox
Next Topic:Branding body isn't removed upon app loading
Goto Forum:
  


Current Time: Tue Jul 08 14:06:57 EDT 2025

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

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

Back to the top