Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » P2 update and language switch(P2 update and language switch in a pure Eclipse 4 application)
P2 update and language switch [message #1063781] Fri, 14 June 2013 08:36 Go to next message
Beat Schaller is currently offline Beat Schaller
Messages: 42
Registered: July 2009
Member
We are implementing a business application in a pure Eclipse 4 environment.

We had to implement P2 Update and Language selection/switch. As the method restart no more exists on workbench , we had to solve it. The StartupLifecycleHandler is not the solution as it is a callback in starting the workbench.

I've written two blogs about our solution. If someone is interested...
P2 Update an restart: http://www.ipt.ch/de/blog/detail/eclipse-4-rich-client-applikationen-mit-p2-automatisch-aktualisieren/
Language selection/Language switch with restart: http://www.ipt.ch/de/blog/detail/sprachenwechsel-und-neustart-fuer-eclipse-4-rich-client-applikationen/

Sorry, it is in german but the code should be understundable for all.
Any comments are welcome.

Beat
Re: P2 update and language switch [message #1063834 is a reply to message #1063781] Fri, 14 June 2013 12:27 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

In Eclipse4, there is an e4 IWorkbench class that has restart:
org.eclipse.e4.ui.workbench.IWorkbench.restart()

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm


Re: P2 update and language switch [message #1063882 is a reply to message #1063834] Fri, 14 June 2013 17:28 Go to previous messageGo to next message
Beat Schaller is currently offline Beat Schaller
Messages: 42
Registered: July 2009
Member
Thanks Paul, I've only seen the PlatformUI.getWorkbench().restart() thats's referencing the compatibility mode.
For the language switch we can use it. But for the other cases I prefer to not create the workbench (P2 Update) if I have to restart. So I prefer to have an additional step before the StartupLifecycleHandler.

Beat
Re: P2 update and language switch [message #1063892 is a reply to message #1063882] Fri, 14 June 2013 19:41 Go to previous message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1289
Registered: July 2012
Senior Member
With E4 there are mechanisms that make a language switch in an Eclipse 4 application possible without restart. There is a new message extension in the e4 tooling. I already blogged about how to use it. The next blog posts are in work to explain language switches and migration to this new mechanism.
Previous Topic:Ctrl+ (C/X/A) doesn't work with Mozilla Browser with Eclipse E4 on Windows
Next Topic:3.x RCP CSS styling not applied to exported product
Goto Forum:
  


Current Time: Mon Sep 22 20:31:50 GMT 2014

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

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