Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 172151 - [DetachedView] Re-attach a detached standalone view makes it not standalone
Summary: [DetachedView] Re-attach a detached standalone view makes it not standalone
Status: RESOLVED DUPLICATE of bug 110634
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eric Moffatt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-30 07:23 EST by Saurav kumar CLA
Modified: 2007-06-25 14:19 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Saurav kumar CLA 2007-01-30 07:23:10 EST
Build ID: M20060921-0945

Steps To Reproduce:
1.Create two perspectives, one view and one action for detaching view(optionally one can use perspective change).
2. Attach view as standalone view in a perspective with (boolean showTitle=false)   
3. under action performed do the programatic detachment
IWorkbenchPage workbenchPage = workbenchWindow.getActivePage();
			IViewReference viewReference = workbenchPage.findViewReference("viewId");
			((WorkbenchPage) workbenchWindow.getActivePage()).detachView((IViewReference) workbenchPage.getReference(viewReference.getView(true)));

Intially you will get your view in the perspective without title. thats okay.
This will open the view in detached window with title and after closing detached window, it will restore the perspective and view is show over there.But this time it will title bar.
That i don't expect. 


More information:
What I want to do.
 1. I want do detach a view programatially and API is still part of internal package.
 2. I don't want the title bar(view tab) for my view this I can do by overriding org.eclipse.ui.internal.DetachedWindow
for the same I need either some simple API for removing title bar or make two APIs public in the next build.
  a. org.eclipse.ui.internal.WorkbenchWindow.getDetachedWindowPool()
  b. org.eclipse.ui.internal.PartStack.getPresentation
Comment 1 Paul Webster CLA 2007-01-30 08:29:10 EST
I have added one standloneview in perspective with (boolean showTitle=false). now detaching view programatically is detaching view from workbench and close operation is reattaching view in the perspective but this time Title is again reappearing.
Comment 2 Eric Moffatt CLA 2007-06-25 14:19:40 EDT

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