Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » restart a workbench
restart a workbench [message #95692] Wed, 02 July 2008 10:22 Go to next message
Eclipse UserFriend
Originally posted by: rglorius.web.de

Hello,

is there a way to restart a RAP workbench like a RCP workbench with
PlatformUI.getWorkbench().restart()?

I just could close the workbench, but reopen failes, re-running the
createUI() method in my Entry Point failes.

Thanks in advance,
Rob.
Re: restart a workbench [message #95707 is a reply to message #95692] Wed, 02 July 2008 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Rob,

this is not yet supported. See this bug:
201545: workbench restart does not open new workbench window
https://bugs.eclipse.org/bugs/show_bug.cgi?id=201545

Cheers,
Rüdiger

Rob wrote:
> Hello,
>
> is there a way to restart a RAP workbench like a RCP workbench with
> PlatformUI.getWorkbench().restart()?
>
> I just could close the workbench, but reopen failes, re-running the
> createUI() method in my Entry Point failes.
>
> Thanks in advance,
> Rob.
>
Re: restart a workbench [message #1259896 is a reply to message #95692] Fri, 28 February 2014 22:52 Go to previous messageGo to next message
Alice in Wonderland is currently offline Alice in WonderlandFriend
Messages: 1
Registered: February 2014
Junior Member
how about a little workaround:

final JavaScriptExecutor executor = RWT.getClient().getService(JavaScriptExecutor.class);
executor.execute("window.location.reload(true);");
Re: restart a workbench [message #1293015 is a reply to message #1259896] Sat, 12 April 2014 08:13 Go to previous message
Barys Dubauski is currently offline Barys DubauskiFriend
Messages: 38
Registered: July 2009
Member
Alice in Wonderland wrote on Fri, 28 February 2014 17:52
how about a little workaround:

final JavaScriptExecutor executor = RWT.getClient().getService(JavaScriptExecutor.class);
executor.execute("window.location.reload(true);");


:
This workaround only stops current UISession and creates a new one within the same JVM process. It doesn't help if one is trying to have Eclipse workbench restarted in order to have a new VM process allocated upon restart. In our case we need the server (Eclipse with embedded Jetty) to be truly restarted and the lack of Workbench.restart() implementation is blocking us from doing that.
Previous Topic:custom widgets: life cycle adapters and frequent client side activities
Next Topic:Strange back-button behaviour
Goto Forum:
  


Current Time: Thu Mar 28 11:31:29 GMT 2024

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

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

Back to the top