Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » View persistency in workbench
View persistency in workbench [message #695928] Tue, 12 July 2011 20:43 Go to next message
Jean Bovet is currently offline Jean BovetFriend
Messages: 34
Registered: September 2009
Member
Hi,

I am facing a problem that is probably easy to solve. My application
needs to dynamically create the views in the perspective at each
startup, depending on some external configuration. The problem so far
is that the views are persisted in the workbench.xml so after the first
restart, the same views are re-created again and again. Is there a way
to tell the workbench to not store the view configuration (or to delete
is somehow on startup - I could delete the workbench.xml file but some
other information in there are useful)?

Thanks a lot,

Jean
Re: View persistency in workbench [message #696135 is a reply to message #695928] Wed, 13 July 2011 10:02 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
On 12.07.2011 22:43, Jean Bovet wrote:
> Hi,
>
> I am facing a problem that is probably easy to solve. My application
> needs to dynamically create the views in the perspective at each
> startup, depending on some external configuration. The problem so far
> is that the views are persisted in the workbench.xml so after the
> first restart, the same views are re-created again and again. Is there
> a way to tell the workbench to not store the view configuration (or to
> delete is somehow on startup - I could delete the workbench.xml file
> but some other information in there are useful)?
Try
org.eclipse.ui.application.IWorkbenchConfigurer.setSaveAndRestore(boolean).

Dani
>
> Thanks a lot,
>
> Jean
>
>
Re: View persistency in workbench [message #696326 is a reply to message #696135] Wed, 13 July 2011 16:11 Go to previous message
Jean Bovet is currently offline Jean BovetFriend
Messages: 34
Registered: September 2009
Member
Thanks, that's exactly what I'm looking for.

Jean

On 2011-07-13 03:02:22 -0700, Daniel Megert said:

> On 12.07.2011 22:43, Jean Bovet wrote:
>> Hi,
>>
>> I am facing a problem that is probably easy to solve. My application
>> needs to dynamically create the views in the perspective at each
>> startup, depending on some external configuration. The problem so far
>> is that the views are persisted in the workbench.xml so after the first
>> restart, the same views are re-created again and again. Is there a way
>> to tell the workbench to not store the view configuration (or to delete
>> is somehow on startup - I could delete the workbench.xml file but some
>> other information in there are useful)?
> Try org.eclipse.ui.application.IWorkbenchConfigurer.setSaveAndRestore(boolean).
>
> Dani
>>
>> Thanks a lot,
>>
>> Jean
Previous Topic:How can I create a texteditor with hyperlink support?
Next Topic:how to set the color of text in state line
Goto Forum:
  


Current Time: Wed Nov 26 10:33:22 GMT 2014

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

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