Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 116933

Summary: [ViewMgmt] Need better view API (esp. fast views)
Product: [Eclipse Project] Platform Reporter: Adam Crume <adam_crume>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P5 CC: Lars.Vogel
Version: 3.0.2Keywords: api, helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Adam Crume CLA 2005-11-17 15:57:58 EST
IWorkbenchPage has showView/hideView methods, but nothing for making a view a
fast view, and nothing for arranging views on the page.  I know this can be done
with perspectives, but I need to be able to do it programmatically.
Comment 1 Nick Edgar CLA 2005-11-18 10:12:20 EST
Can you be more specific about your particular use case?
Comment 2 Adam Crume CLA 2005-11-18 13:54:20 EST
(In reply to comment #1)
> Can you be more specific about your particular use case?
> 

I have an RCP application with multiple sub-applications within it, each
represented by a perspective.  I was hoping to allow the user to set up fast
views and have the set of fast views the same for all perspectives (except one).
 I think I've found where listeners can be added for when a view is made a fast
view, and you can query whether a view is a fast view or not, but I don't see
where you can set it.
Comment 3 Nick Edgar CLA 2006-03-15 13:28:05 EST
Reassigning bugs in component areas that are changing ownership.
Comment 4 Adam Crume CLA 2006-03-21 13:31:03 EST
In addition, I'd like to be able to make a perspective fixed or not fixed at runtime.  We're concerned that some of our less technical users might accidentally close views and not know how to get them back, so I'd like to start out with a fixed perspective, but give the user the option of unlocking it at runtime.
Comment 5 Boris Bokowski CLA 2009-11-11 17:31:14 EST
Remy is now responsible for watching the [ViewMgmt] category.
Comment 6 Remy Suen CLA 2009-11-24 10:30:02 EST
(In reply to comment #0)
> IWorkbenchPage has showView/hideView methods, but nothing for making a view a
> fast view

We added API in IWorkbenchPage in 3.2 for this. See setPartState(*).

> and nothing for arranging views on the page.

Could you clarify what you're asking for here and whether this is still needed?

(In reply to comment #4)
> In addition, I'd like to be able to make a perspective fixed or not fixed at
> runtime.

I don't think this is implemented. Is this still desired?
Comment 7 Remy Suen CLA 2009-12-12 17:20:06 EST
(In reply to comment #0)
> and nothing for arranging views on the page.

Is this still desired?

(In reply to comment #4)
> In addition, I'd like to be able to make a perspective fixed or not fixed at
> runtime.

It seems this is similar to bug 90291.
Comment 8 Lars Vogel CLA 2015-01-13 18:02:46 EST
In Eclipse 4 you can access the model via the EModelService and modify it at runtime.