IViewPart & ContentOutline [message #448733] |
Mon, 01 May 2006 03:12  |
Eclipse User |
|
|
|
Originally posted by: Stephen.Egan.csiro.au
Hi all,
I would like to get an IViewPart I have in a RCP project to link with th=
e =
ContentOutline view that is normally associated with editors. Is there =
=
any way to do this, or can this only happen with an IEditorPart?
I don't want to reimplement my view as an editor as I want to be able to=
=
detach my view, and cannot do that with an editor.
In the case where this can only be done with an IEditorPart, is there a =
=
cheeky hack where I can make an "invisible" editor, or otherwise fool th=
e =
workbench into thinking that my IViewPart is an IEditorPart?
Many thanks in advance,
Stephen
-- =
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
|
|
Re: IViewPart & ContentOutline [message #448740 is a reply to message #448733] |
Mon, 01 May 2006 07:51  |
Eclipse User |
|
|
|
Almost ... the ContentOutline view requests an IContentOutlinePage from
the part's adapter. If it is returned, the content outline view shows
the information. The class doc on IContentOutlinePage explains.
Unfortunately, the isImportant() method returns true for "part
instanceof IEditorPart"
Assuming you could implement all of the protocol the ContentOutline view
needed, it might work as long as you implement the IEditorPart
interface. But I'll mention here that this is *VERY* unsupported.
Later,
PW
|
|
|
Powered by
FUDForum. Page generated in 0.05599 seconds