Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to display the active editors outline page in a multipage editor?
How to display the active editors outline page in a multipage editor? [message #277012] Fri, 03 December 2004 01:35 Go to next message
Eclipse UserFriend
Hi,

I have a multipage editor with a graphical (gef) editor and a third
party xml editor page. Both embedded editors contribute an outline page.

Now I want the multipage editor to always show the outline page of the
active editor.

I already implemented the getAdapter() method of the multipage editor to
delegate to the correct sub-editor - based on the current page.
However - the getAdapter() method is only called once - not during page
change.

I also tried some other ugly workarounds of getting the ContentOutline
view and directly calling partActivated on page change - but that
introduced a lot of other problems...


Thanks for any help,
Martin.
Re: How to display the active editors outline page in a multipage editor? [message #277014 is a reply to message #277012] Fri, 03 December 2004 02:37 Go to previous messageGo to next message
Eclipse UserFriend
Martin Schuhmayer schrieb:

> I also tried some other ugly workarounds of getting the
ContentOutline view and directly calling partActivated on page change -
but that introduced a lot of other problems...


That's probably not the right way. The Outline view is a PageBookView.
This view is specialiced for providing different content (pages)
depending on the current active part. In the case of the Outline view
these are IEditorParts.

Instead you sould provide only one ContentOutlinePage that knows your
editor and displays different content depending on the selected tab in
your editor. You can use the PageBook widget inside your outline page
for this.

Cu, Gunnar
Re: How to display the active editors outline page in a multipage editor? [message #277219 is a reply to message #277014] Mon, 06 December 2004 18:47 Go to previous message
Eclipse UserFriend
Originally posted by: smesh.openrules.com

Gunnar Wagenknecht wrote:
> The Outline view is a PageBookView.
> This view is specialiced for providing different content (pages)
> depending on the current active part. In the case of the Outline view
> these are IEditorParts.
>
> Instead you sould provide only one ContentOutlinePage that knows your
> editor and displays different content depending on the selected tab in
> your editor. You can use the PageBook widget inside your outline page
> for this.

Gunnar, please correct me if I am wrong:
- ContentOutline view is *tabbed multi part view*.
- PageBook control is *tab-less multi part widget*.
- MultiPageEditorPart is *tabbed multi tab Editor*
- IPageBookViewPage is *page inside multi part view*.
- Why *Page implements IPageBookViewPage*, not IPage?

Thanks in advance for any refs to the *best design docs* describing at
least Multi Part Views and/or Editors.

--
10x,
Sam Mesh
Previous Topic:Select an Editor Based on File Content
Next Topic:Default charset GBK not supported, using ISO-8859-1 instead
Goto Forum:
  


Current Time: Sat May 10 12:29:52 EDT 2025

Powered by FUDForum. Page generated in 0.03217 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top