Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » View persistency in workbench
View persistency in workbench [message #695928] Tue, 12 July 2011 16:43 Go to next message
Eclipse UserFriend
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 06:02 Go to previous messageGo to next message
Eclipse UserFriend
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 12:11 Go to previous message
Eclipse UserFriend
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 Jul 23 06:19:02 EDT 2025

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

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

Back to the top