Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » IWorkbenchConfigurer.setSaveAndRestore strange behavior
IWorkbenchConfigurer.setSaveAndRestore strange behavior [message #656803] Mon, 28 February 2011 16:52 Go to next message
El Arbi Aboussoror is currently offline El Arbi AboussororFriend
Messages: 90
Registered: June 2010
Member
Hello

I have a sample RCP application with one view and one perspective.
When I launch the application with:


public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
...
	public void initialize(IWorkbenchConfigurer configurer) {
		configurer.setSaveAndRestore(true);
	}
...
}

I see the workbench without the view.
And if a change the code to:
configurer.setSaveAndRestore([B]false[/B]);


It shows the view !

I also tryied to launch the RCP app with -clean argument but the behavior still the same.

[Updated on: Mon, 28 February 2011 16:52]

Report message to a moderator

Re: IWorkbenchConfigurer.setSaveAndRestore strange behavior [message #656840 is a reply to message #656803] Mon, 28 February 2011 18:19 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 02/28/2011 11:52 AM, ElArbi wrote:
> I see the workbench without the view.

If you launched once without the view, your perspective has been saved
in the org.eclipse.ui.workbench state location.

<workspace>/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml

to fix it, delete this file (it's not effected by -clean, which simply
deletes the extension registry cache and forces it to rebuild)

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/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: IWorkbenchConfigurer.setSaveAndRestore strange behavior [message #656849 is a reply to message #656840] Mon, 28 February 2011 19:01 Go to previous message
El Arbi Aboussoror is currently offline El Arbi AboussororFriend
Messages: 90
Registered: June 2010
Member
Thanks
It works !
Previous Topic:Adding existing jar to plugin
Next Topic:How to Link the properties file in Rcp
Goto Forum:
  


Current Time: Fri Apr 26 17:39:51 GMT 2024

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

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

Back to the top