Multipage GEF editor problem with palette [message #188175] |
Tue, 19 July 2005 11:00  |
Eclipse User |
|
|
|
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 11:27  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.06505 seconds