Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Palette is not active if I add a page to a MultiPageEditor
Palette is not active if I add a page to a MultiPageEditor [message #227060] Tue, 28 November 2006 16:23 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
After I add a new page to the MultiPageEditor, the palette is only active
for the newly added pages. Each page of the MultiPageEditor extends
GraphicalEditorWithFlyoutPalette and the call to getPaletteRoot gets the
shared palette from MultiPageEditor. This funionality in my app broke when I
moved to version 3.2.1 of eclipse from 3.1.

What calls do I need to make to make the palette active when I switch among
pages in the MultiPageEditor?
Re: Palette is not active if I add a page to a MultiPageEditor [message #227134 is a reply to message #227060] Wed, 29 November 2006 15:24 Go to previous message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
rather than continuing to push a rope, i opted to use the following in my
page that implements GraphicalEditor (instead of
GraphicalEditorWithFlyoutPalette) . So I will have the palette in a separate
view which works fine and is now shared between pages.

public Object getAdapter(Class type) {


else if (type == PalettePage.class)
{
return this.myMultipageParentEditor.getPalettePage();
}

}

"Drew Frantz" <drew@acm.org> wrote in message
news:ekhnq4$vk9$1@utils.eclipse.org...
> After I add a new page to the MultiPageEditor, the palette is only active
> for the newly added pages. Each page of the MultiPageEditor extends
> GraphicalEditorWithFlyoutPalette and the call to getPaletteRoot gets the
> shared palette from MultiPageEditor. This funionality in my app broke when
I
> moved to version 3.2.1 of eclipse from 3.1.
>
> What calls do I need to make to make the palette active when I switch
among
> pages in the MultiPageEditor?
>
>
>
>
>
Previous Topic:ZoomManager.ANIMATE_ZOOM_IN_OUT
Next Topic:Draw out of the Graphics area
Goto Forum:
  


Current Time: Thu Apr 25 08:01:10 GMT 2024

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

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

Back to the top