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

Bug 107014

Summary: [Perspectives] getViewLayout(View.ID).setCloseable(false) not checked when closing toolwindow of detached view
Product: [Eclipse Project] Platform Reporter: Andreas Filler <andreas>
Component: UIAssignee: Paul Webster <pwebster>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P4 CC: millz, n.a.edgar
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Andreas Filler CLA 2005-08-15 09:10:59 EDT
getViewLayout(DataMapping_DebuggingInputView.ID).setCloseable(false);

--> the view ist not closable, but moveable (works correct)

--> Now you detach the window (still correct)

--> You close the toolwindow containing the detached view: View will be closed 
and disposed (bug)

Suggested fix: toolwindow can only be closed when all detached windows inside 
are closeable
Comment 1 Jason Miller CLA 2005-12-13 08:04:09 EST
Same issue...

I added a view the the perspective like this, in my own RCP app:

IFolderLayout centerFolder = layout.createFolder( "centerFolder",
    IPageLayout.RIGHT, 0.25f, "leftFolder" );
centerFolder.addView( WeatherDetailsView.ID_VIEW );
layout.getViewLayout( WeatherDetailsView.ID_VIEW ).setCloseable( false );

This creates the view with no "X" button in its title.  However, if you detach that view into its own window, that window can be closed and instead of the view being restored back to the workbench, it is closed.  

Expected bahavior - view should not be closeable even if detached.  If window is closeable, then view should be restored to workbench.
Comment 2 Jason Miller CLA 2005-12-13 08:05:01 EST
BTW, I am on eclipse:
Version: 3.1.0
Build id: I20050811-1530
Comment 3 Nick Edgar CLA 2005-12-13 10:03:37 EST
Paul, could I get your help on this one?
Comment 4 Paul Webster CLA 2006-04-04 12:36:54 EDT

*** This bug has been marked as a duplicate of 97859 ***