View persistency in workbench [message #695928] |
Tue, 12 July 2011 16:43  |
Eclipse User |
|
|
|
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 #696326 is a reply to message #696135] |
Wed, 13 July 2011 12:11  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02676 seconds