Bug 70050 - [Presentations] No API for adding detached views in IPageLayout
Summary: [Presentations] No API for adding detached views in IPageLayout
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P5 enhancement with 7 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on: 77174
Blocks:
  Show dependency tree
 
Reported: 2004-07-14 15:07 EDT by Cory Turner CLA
Modified: 2019-09-06 15:30 EDT (History)
9 users (show)

See Also:


Attachments
Detached Window API (15.45 KB, patch)
2004-08-30 14:01 EDT, Cory Turner CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cory Turner CLA 2004-07-14 15:07:55 EDT
It isn't currently possible to add detached views/detached view placeholders to
a perspective through IPageLayout. Because of this you cannot create a
perspective with a detached window in its default layout.
Comment 1 Cory Turner CLA 2004-08-30 14:01:02 EDT
Created attachment 14263 [details]
Detached Window API

Needed this to properly make tests for several detached functions so I've
quickly put together a patch. PageLayout keeps collections of DetachedWindows
and DetachedPlaceholders created by the API, which are passed to
PerspectiveHelper on loadPredefinedPersp(), which opens the windows if
necessary on perspective activation. 

The additional implementers of IFolderLayout and IPlaceholderFolderLayout were
the only way I could see this happening since DetachedWindows treat PartPanes
as their children rather than their stack, but this may not necessarily be the
best way to deal with it.
Comment 2 Ben Brown CLA 2005-09-16 16:10:31 EDT
Did this bug ever go anywhere?  This is a feature that I'd really like to see
implemented and I'm sure others would as well, it seems like there have been
many questions recently on the eclipse.platform.rcp news group about this type
API.  Is there a patch out there for the current milestone?
Comment 3 Michael Van Meekeren CLA 2005-09-20 09:01:09 EDT
Sorry for not updating this bug.  There is one problem that blocks this bug. 
See bug 77174, SWT does not support reparenting (hence views can not be
detached) on the Mac.  

I am going to mark this as dependant on that bug and if it is fixed we can
investigate opening up this API.
Comment 4 Paul Webster CLA 2006-09-28 15:13:48 EDT
Is this still a problem in 3.3?

PW
Comment 5 Denis Roy CLA 2007-06-22 09:32:40 EDT
Changes requested on bug 193523
Comment 6 Chris Eagan CLA 2008-02-15 12:00:21 EST
I am trying to programmatically define a placeholder for a view that needs to be detached. This patch seems to be exactly what I am looking for, except that it does not appear to have been merged into the 3.3 codebase. Is there any chance this could be going into the 3.4 release? Is it possible to hack around this using internal APIs until an official api is available?
Comment 7 Paul Webster CLA 2008-02-15 12:10:00 EST
Eric, do you think this is something we could add in?
PW
Comment 8 Eric Moffatt CLA 2008-02-18 23:13:42 EST
Paul, let me take a look at the patch...it's likely stale by now but I'll take a look.
Comment 9 Elias Volanakis CLA 2009-04-23 18:02:57 EDT
If you've arrived at this bug, you may find this workaround (using internal code) useful:

http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/msg07312.html


Comment 10 Eric Moffatt CLA 2009-04-24 10:26:25 EDT
The issue regarding re-parenting still exists on Motif (which we still support). This means that we can't add the API because we can't implement it on all our required platforms.
Comment 11 Elias Volanakis CLA 2009-04-24 18:15:53 EDT
Eric, 

thanks for the update on this.
Comment 12 Jeyanthi Gopalan CLA 2010-11-30 20:48:33 EST
I've come across several requirements and also in the past that need the views to be launched detached. So can you either provide an API or capability to configure that at least in the supported platforms and making Motif platform as an exception/known issue?
Comment 13 Paul Webster CLA 2010-12-01 09:49:54 EST
With 3.7 we are no longer restricted by what motif can do, as it is to be removed as a reference platform.

PW
Comment 14 Eclipse Webmaster CLA 2019-09-06 15:30:34 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.