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

Bug 80128

Summary: [ViewMgmt] closing stacked view should be possible without opening it first
Product: [Eclipse Project] Platform Reporter: Adam Kiezun <akiezun>
Component: UIAssignee: Boris Bokowski <bokowski>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: endante
Version: 3.1Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
One line fix, adds close icons to all views when unselected none

Description Adam Kiezun CLA 2004-12-03 13:37:01 EST
3.0

it should be possible to close a stacked view without opening it first. It is
possible for editors, because the little X sign shows up when you hover over the
tab. With views, you first have to open them only to close them. 

This is too slow, because sometimes it means loading classes or even activating
plugins to do it.
Comment 1 Nick Edgar CLA 2006-03-15 13:28:02 EST
Reassigning bugs in component areas that are changing ownership.
Comment 2 Trevor CLA 2008-09-16 20:48:33 EDT
Created attachment 112717 [details]
One line fix, adds close icons to all views when unselected

This patch is a one line change to WorkbenchPresentationFactory.java line 118:
 folder.setUnselectedCloseVisible(true);

where it was previously false.

This changes all views to have close buttons when unselected (just like editors do). This makes a significant (in my opinion) change to the visual presentation of views. Maybe there should be a preference to enable this? (Yet another preference...)

Anyways, this patch solved the bug for me.
  Trevor Kaufman
Comment 3 Trevor CLA 2009-06-16 16:06:53 EDT
Hey, just noticed this was still here.. 

 Is this something that might actually be fixed? or should this be closed?
Comment 4 Boris Bokowski CLA 2009-06-22 11:04:56 EDT
(In reply to comment #3)
> Hey, just noticed this was still here.. 
> 
>  Is this something that might actually be fixed? or should this be closed?

Sorry for not responding earlier. We won't be adding close buttons (in the 3.x stream), but there is a way to close view tabs: click on them with the middle mouse button. This is similar to what browsers with tabs (e.g. Firefox) do. I hope this will work for you.
Comment 5 Trevor CLA 2009-06-22 12:18:46 EDT
This is fine with me, I don't use the functionality of the patch. Was just hoping this bug would be resolved.