Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Updates and restoreState
Updates and restoreState [message #332481] Wed, 22 October 2008 10:00 Go to next message
Markus Schindler is currently offline Markus SchindlerFriend
Messages: 30
Registered: July 2009
Member
Hi,

we develope a rcp application and setting setSaveAndRestore true. Now we
got following problem:
We manually update our plugins via the
org.eclipse.update.standalone.ScriptedCommands (Install, Uninstall, etc.),
after that, it's possible that a view has been deleted or a new view was
added to a perspective.
But when the user restart the application, eclipse tries to load the old
saved perspective, so the changes won't appear.
Is there a programmatically way to reset the workbench, afer updating?

regards
Markus
Re: Updates and restoreState [message #332482 is a reply to message #332481] Wed, 22 October 2008 11:38 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You can call org.eclipse.ui.IWorkbenchPage.resetPerspective()

PW

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


Previous Topic:how to terminate an ILaunch (or IProcess) programmatically
Next Topic:Handle ESC press to a whole shell as ENTER is handled with setDefaultButton
Goto Forum:
  


Current Time: Thu Apr 25 11:31:34 GMT 2024

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

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

Back to the top