Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Nesting a GMF FileDiagramEditor inside a org.eclipse.ui.part.MultiPageEditorPart
Nesting a GMF FileDiagramEditor inside a org.eclipse.ui.part.MultiPageEditorPart [message #4144] Thu, 03 August 2006 03:45 Go to next message
Eclipse UserFriend
Originally posted by: lynchjack.hotmail.com

Hi,

I've tried nesting a generated GMF diagram editor that extends
org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.edit or.FileDiagramEditor
inside a MultiPageEditor as generated by the template in the "Create New
Project" wizard.

The editor appears, but it's missing the palette etc.. I'm guessing that
this is because the generated diagram editor contributes the variious parts
via its GMF extension points that are all keyed on the editor ID. The id of
the generated MultiPageEditor doesn't match these extensions so they are
lost.

Can anyone suggest how I would get this to work?

Thanks,
Jack
Re: Nesting a GMF FileDiagramEditor inside a org.eclipse.ui.part.MultiPageEditorPart [message #4214 is a reply to message #4144] Thu, 03 August 2006 05:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jack,

See news://news.eclipse.org:119/e6p5ro$o5l$1@utils.eclipse.org (thats in
the old newsgroup)

I tried to use the GMF Editor inside FormEditor which extends
MultiPageEditor.

The Palette problem can be solved by subclassing MultiPageEditorSite and
let it return the ID of the PaletteProvider.

But that was not the only problem I ran into. (I stopped trying)


Regards,
Jan

Jack Lynch schrieb:
> Hi,
>
> I've tried nesting a generated GMF diagram editor that extends
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.edit or.FileDiagramEditor
> inside a MultiPageEditor as generated by the template in the "Create New
> Project" wizard.
>
> The editor appears, but it's missing the palette etc.. I'm guessing that
> this is because the generated diagram editor contributes the variious parts
> via its GMF extension points that are all keyed on the editor ID. The id of
> the generated MultiPageEditor doesn't match these extensions so they are
> lost.
>
> Can anyone suggest how I would get this to work?
>
> Thanks,
> Jack
>
>
Re: Nesting a GMF FileDiagramEditor inside a org.eclipse.ui.part.MultiPageEditorPart [message #8585 is a reply to message #4144] Tue, 08 August 2006 03:28 Go to previous messageGo to next message
Eclipse UserFriend
You must return correct 'editing domain id'.

If you have more Editing Domains accessible by your you MultiPageEditor
you will also have problems with actions -> they will use IEditingDomainProvider
(correct instance resolve this problem).

Sorry for my English ;)
Grzesiek



Jack Lynch wrote:
> Hi,
>
> I've tried nesting a generated GMF diagram editor that extends
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.edit or.FileDiagramEditor
> inside a MultiPageEditor as generated by the template in the "Create New
> Project" wizard.
>
> The editor appears, but it's missing the palette etc.. I'm guessing that
> this is because the generated diagram editor contributes the variious parts
> via its GMF extension points that are all keyed on the editor ID. The id of
> the generated MultiPageEditor doesn't match these extensions so they are
> lost.
>
> Can anyone suggest how I would get this to work?
>
> Thanks,
> Jack
>
>
Re: Nesting a GMF FileDiagramEditor inside a org.eclipse.ui.part.MultiPageEditorPart [message #15945 is a reply to message #8585] Fri, 11 August 2006 12:52 Go to previous message
Eclipse UserFriend
Originally posted by: lynchjack.hotmail.com

Thanks Grzesiek, have just gotten back to looking at this - it'll be a
priority on Monday :)

My MultiPageEditor implements IEditingDomainProvider, delegating to the
nested GMF generated editor but it's not called. Where should I go about
returning the correct editing domain id?

Thanks,
Jack

"Grzegorz Bialek" <gbialek@poczta.onet.pl> wrote in message
news:eb9efu$3el$1@utils.eclipse.org...
> You must return correct 'editing domain id'.
>
> If you have more Editing Domains accessible by your you MultiPageEditor
> you will also have problems with actions -> they will use
> IEditingDomainProvider
> (correct instance resolve this problem).
>
> Sorry for my English ;)
> Grzesiek
>
>
>
> Jack Lynch wrote:
>> Hi,
>>
>> I've tried nesting a generated GMF diagram editor that extends
>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.edit or.FileDiagramEditor
>> inside a MultiPageEditor as generated by the template in the "Create New
>> Project" wizard.
>>
>> The editor appears, but it's missing the palette etc.. I'm guessing that
>> this is because the generated diagram editor contributes the variious
>> parts via its GMF extension points that are all keyed on the editor ID.
>> The id of the generated MultiPageEditor doesn't match these extensions so
>> they are lost.
>>
>> Can anyone suggest how I would get this to work?
>>
>> Thanks,
>> Jack
Previous Topic:Re: GMF files with common navigator framework
Next Topic:reason for workaround
Goto Forum:
  


Current Time: Wed May 07 23:22:47 EDT 2025

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

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

Back to the top