multipageeditor, one editdomain and the palette [message #162778] |
Mon, 27 December 2004 11:56  |
Eclipse User |
|
|
|
Originally posted by: jgreen.upb.de
Hello,
I have some questions regarding the Palette of GraphicalEditors in a
MultiPageEditorPart.
I have several GraphicalEditors added to a MultiPageEditorPart that
supply different "Views" on the same model and, since the editors work
on the same model, I plan to share an EditDomain between those Editors.
So, this also implies to use the same palette.
My question now is where to place the palette: Would I add it directly
to the MultiPageEditorPart?
How?
Or is there a way to add it to each Editor. (PaletteViewers can only
have one Control, I assume.) The reason for this question is that I'd
also like to keep the flexibility in the future to add an editor to the
MultiPageEditorPart which supplies its own EditDomain and, thus, also
its own palette.
Any ideas how to make this work? Is there some examples of
MultiPageEditorParts with a shared EditDomain?
Thanks,
Joel
|
|
|
Re: multipageeditor, one editdomain and the palette [message #162794 is a reply to message #162778] |
Mon, 27 December 2004 21:47   |
Eclipse User |
|
|
|
Each of the (sub) graphical editors would be a
GraphicalEditorWithFlyoutPalette and would thus have its own palette. That
way, you won't see the palette if you switch to like a text-only view of
your model in the multi-page editor.
"Joel Greenyer" <jgreen@upb.de> wrote in message
news:cqpern$b9i$1@www.eclipse.org...
> Hello,
> I have some questions regarding the Palette of GraphicalEditors in a
> MultiPageEditorPart.
>
> I have several GraphicalEditors added to a MultiPageEditorPart that
> supply different "Views" on the same model and, since the editors work
> on the same model, I plan to share an EditDomain between those Editors.
> So, this also implies to use the same palette.
>
> My question now is where to place the palette: Would I add it directly
> to the MultiPageEditorPart?
> How?
>
> Or is there a way to add it to each Editor. (PaletteViewers can only
> have one Control, I assume.) The reason for this question is that I'd
> also like to keep the flexibility in the future to add an editor to the
> MultiPageEditorPart which supplies its own EditDomain and, thus, also
> its own palette.
>
> Any ideas how to make this work? Is there some examples of
> MultiPageEditorParts with a shared EditDomain?
>
> Thanks,
>
> Joel
|
|
|
Re: multipageeditor, one editdomain and the palette [message #162857 is a reply to message #162778] |
Tue, 28 December 2004 10:34   |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
What you are doing is currently very difficult.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=46207
"Joel Greenyer" <jgreen@upb.de> wrote in message
news:cqpern$b9i$1@www.eclipse.org...
> Hello,
> I have some questions regarding the Palette of GraphicalEditors in a
> MultiPageEditorPart.
>
> I have several GraphicalEditors added to a MultiPageEditorPart that
> supply different "Views" on the same model and, since the editors work
> on the same model, I plan to share an EditDomain between those Editors.
> So, this also implies to use the same palette.
>
> My question now is where to place the palette: Would I add it directly
> to the MultiPageEditorPart?
> How?
>
> Or is there a way to add it to each Editor. (PaletteViewers can only
> have one Control, I assume.) The reason for this question is that I'd
> also like to keep the flexibility in the future to add an editor to the
> MultiPageEditorPart which supplies its own EditDomain and, thus, also
> its own palette.
>
> Any ideas how to make this work? Is there some examples of
> MultiPageEditorParts with a shared EditDomain?
>
> Thanks,
>
> Joel
|
|
|
|
Re: multipageeditor, one editdomain and the palette [message #163111 is a reply to message #163104] |
Sun, 02 January 2005 17:10  |
Eclipse User |
|
|
|
Fabian Wolf wrote:
> news.eclipse.org wrote:
> [...]
> I'm having the very same problem!
> Inside my MultipageEditor I'm having different
> GraphicalViewerWithFlyoutPalette, each having its own EditDomain.
> In the MultiPageEditorActionBarContributor I tell all the different views
> (Outline, Palette) to "partActivated(activePart)" in setActivePage().
>
> This doesn't seem very pretty nor is it working properly.
> The outline switches, but as soon as I click on the palette, the outline
> switches to a previous editor and I am unable to click'n'drop something on
> the GraphicalViewer. To me this seems like the palette isn't updated
> correctly. It doesn't even call getAdapter.
BTW,... when I close the workbench's palette viewer and use the editor's
flyout palette, it all works fine!
Regards,
Fabian
|
|
|
Powered by
FUDForum. Page generated in 0.04276 seconds