Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 107014 - [Perspectives] getViewLayout(View.ID).setCloseable(false) not checked when closing toolwindow of detached view
Summary: [Perspectives] getViewLayout(View.ID).setCloseable(false) not checked when cl...
Status: RESOLVED DUPLICATE of bug 97859
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Paul Webster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-15 09:10 EDT by Andreas Filler CLA
Modified: 2006-04-04 12:36 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***