Nesting a GMF FileDiagramEditor inside a org.eclipse.ui.part.MultiPageEditorPart [message #4144] |
Thu, 03 August 2006 03:45  |
Eclipse User |
|
|
|
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 #15945 is a reply to message #8585] |
Fri, 11 August 2006 12:52  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04348 seconds