Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Application frozen while reloading (F5)
Application frozen while reloading (F5) [message #1245160] Thu, 13 February 2014 11:40 Go to next message
David Marina is currently offline David MarinaFriend
Messages: 3
Registered: November 2012
Junior Member
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] Fri, 14 February 2014 03:11 Go to previous messageGo to next message
Yury Mising name is currently offline Yury Mising nameFriend
Messages: 95
Registered: May 2010
Location: Russia
Member
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 14:31 Go to previous message
David Marina is currently offline David MarinaFriend
Messages: 3
Registered: November 2012
Junior Member
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: Thu Mar 28 23:39:57 GMT 2024

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

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

Back to the top