Skip to main content



      Home
Home » Eclipse Projects » GEF » multipageeditor, one editdomain and the palette
multipageeditor, one editdomain and the palette [message #162778] Mon, 27 December 2004 11:56 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #163104 is a reply to message #162794] Sun, 02 January 2005 15:43 Go to previous messageGo to next message
Eclipse UserFriend
news.eclipse.org wrote:

> 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.

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.

How would I workaround this?

Once again (Summary):

MultiPageEditorPart -> different GraphicalViewerWithFlyoutPalette (each
having its own EditDomain)

How to get the Outline and the Palette View updated (and working) on
pageChange? Any snippets?

Thanks a lot

Fabian
Re: multipageeditor, one editdomain and the palette [message #163111 is a reply to message #163104] Sun, 02 January 2005 17:10 Go to previous message
Eclipse UserFriend
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
Previous Topic:how to disable posibility to resize elements?
Next Topic:GEF and Keyboard
Goto Forum:
  


Current Time: Wed Jul 09 10:19:15 EDT 2025

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

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

Back to the top