Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » What controls the open state of a view on workspace creation?
What controls the open state of a view on workspace creation? [message #483032] Sat, 29 August 2009 15:58 Go to next message
Eclipse UserFriend
Originally posted by: no.dr.ess

My plugin implements a view. It is well behaved with one exception.
When a new workspace is created, my view is initially open. The better
behaviour would be for the view to be initially closed. If I switch
from one workspace to another, or restart Eclipse, the state of the view
is consistent with the last state of the view in the opened workspace.

What controls the initial open/closed state of a view in a newly created
workspace?
Re: What controls the open state of a view on workspace creation? [message #483187 is a reply to message #483032] Mon, 31 August 2009 14:01 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

The perspective definition controls whether the view is open or closed initially (i.e. when you reset the perspective or when you open in a new workspace). After that, the perspective's state is saved in the workspace metadata.

PW


Re: What controls the open state of a view on workspace creation? [message #483316 is a reply to message #483187] Tue, 01 September 2009 03:50 Go to previous message
Gerald Rosenberg is currently offline Gerald RosenbergFriend
Messages: 104
Registered: July 2009
Senior Member
In article <h7gl4d$2qh$1@build.eclipse.org>, pwebster@ca.ibm.com says...
>
> The perspective definition controls whether the view is open or closed initially (i.e. when you reset the perspective or when you open in a new workspace). After that, the perspective's state is saved in the workspace metadata.
>
> PW

Ok, perspectiveExtension->(view)->visible = false. That works. Thanks.
Previous Topic:How to link plugin preferencePage as sub-category of another plugin?
Next Topic:PropertyTester org.eclipse.core.resources.contentTypeId and hierarchical content types
Goto Forum:
  


Current Time: Thu Dec 18 23:16:04 GMT 2014

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

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