Community
Participate
Working Groups
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.
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.
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?
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.
Is this still a problem in 3.3? PW
Changes requested on bug 193523
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?
Eric, do you think this is something we could add in? PW
Paul, let me take a look at the patch...it's likely stale by now but I'll take a look.
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
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.
Eric, thanks for the update on this.
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?
With 3.7 we are no longer restricted by what motif can do, as it is to be removed as a reference platform. PW
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.