Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Howto restart an e4 RCP application
Howto restart an e4 RCP application [message #669577] Tue, 10 May 2011 19:37 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: May 2011
Junior Member
A 3.* based RCP application will be restarted if IApplication.start returns IApplication.EXIT_RESTART. The class E4Application seems to always return EXIT_OK.

org.eclipse.ui.IWorkbench also has a restart method, org.eclipse.e4.ui.workbench.IWorkbench does not.

So how can I restart an e4 RCP application?
Re: Howto restart an e4 RCP application [message #918049 is a reply to message #669577] Thu, 20 September 2012 17:38 Go to previous messageGo to next message
Alexandre Borgoltz is currently offline Alexandre BorgoltzFriend
Messages: 31
Registered: July 2009
Location: France
No answer to that one?
Re: Howto restart an e4 RCP application [message #918162 is a reply to message #918049] Thu, 20 September 2012 20:05 Go to previous message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
You could create a Wrapper around E4Application and use that instead. That could look something like this:

public class MyE4Application implements IApplication {
	private E4Application e4app;

	public Object start(IApplicationContext context) throws Exception {
		E4Application e4app = new E4Application();
		Object ret = e4app.start(context);
		... change the return code ...	
		return ret;

	public void stop() {
Previous Topic:Eclipse Product export wizard
Next Topic:Howto contribute a perspective to a perspective stack?
Goto Forum:

Current Time: Thu May 13 18:47:00 GMT 2021

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

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

Back to the top