Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Multipage GEF editor problem with palette
Multipage GEF editor problem with palette [message #188175] Tue, 19 July 2005 15:00 Go to next message
Milan Stanojevic is currently offline Milan StanojevicFriend
Messages: 13
Registered: July 2009
Junior Member
I am developing multipage GEF editor which has graphical editor with
flyout palette on each page of mutipage editor. I didn't use GEF's
GraphicalEditorWithFlyoutPalette class, but I did reuse most of its code.
I want all editors to share the same EditDomain, CommandStack and model.
The only problem I have with this approach is with palettes on different
pages onf multipage editor. When I set up different PaletteRoots for each
page I get a NullPointerException somewhere in GEFs code that deals with
Palettes. I then tried to use single PaletteRoot (which is also more
natural) but it turns out that only one of the palettes (last one added)
is active so all editors would react only to ToolEntrys from that palette.
Selecting entrys from other palettes has no effect even though they appear
selected (palette button is down state).

Any suggestions how I can make this work?
Re: Multipage GEF editor problem with palette [message #188184 is a reply to message #188175] Tue, 19 July 2005 15:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

One edit domain == one palette

Is the palette different for all different editors?

"Milan Stanojevic" <milanst@gmail.com> wrote in message
news:33772c3f8ac148ce5e835238aea8ea30$1@www.eclipse.org...
> I am developing multipage GEF editor which has graphical editor with
> flyout palette on each page of mutipage editor. I didn't use GEF's
> GraphicalEditorWithFlyoutPalette class, but I did reuse most of its code.
> I want all editors to share the same EditDomain, CommandStack and model.
> The only problem I have with this approach is with palettes on different
> pages onf multipage editor. When I set up different PaletteRoots for each
> page I get a NullPointerException somewhere in GEFs code that deals with
> Palettes. I then tried to use single PaletteRoot (which is also more
> natural) but it turns out that only one of the palettes (last one added)
> is active so all editors would react only to ToolEntrys from that palette.
> Selecting entrys from other palettes has no effect even though they appear
> selected (palette button is down state).
>
> Any suggestions how I can make this work?
>
>
Re: Multipage GEF editor problem with palette [message #188222 is a reply to message #188184] Tue, 19 July 2005 15:27 Go to previous message
Milan Stanojevic is currently offline Milan StanojevicFriend
Messages: 13
Registered: July 2009
Junior Member
Pratik Shah wrote:

> One edit domain == one palette
That is why only one palette is active, the one from the editor last added
to mulitpageeditor. And that is the problem, because I cannot select any
tool on other palettes, so I have only one editor which is working.

> Is the palette different for all different editors?
The palettes are the same, but I wan't to have different tools active on
different editors. I want the same behaviour in one multipageeditor as I
would have with multiple GEF editors, plus I want to have shared
EditDomain, model and CommandStack.

Everything else works fine, except Palettes. It works fine when I have
Palette View open, but when it is closed and the palettes from
FlyoutComposite are active I have the above mention problem.
Previous Topic:show/hide all editparts of a given type
Next Topic:Integrating custom layout algorithms
Goto Forum:
  


Current Time: Wed Jul 17 20:22:58 GMT 2024

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

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

Back to the top