Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Extending the generated editor
Extending the generated editor [message #415538] Thu, 20 December 2007 10:54 Go to next message
Reinhold Bihler is currently offline Reinhold BihlerFriend
Messages: 64
Registered: July 2009
Member
Hello,

how can I extend the editor generated from an Ecore model
with a menu or context menu?

E.g. for the EMF4Net component we are modeling a
CsharpGenModel.ecore model that is similar to EMF's
Genmodel.ecore model. We would like to extend the
CsharpGenModel editor in the same way EMF's genmodel
editor was extended.

The EMF genmodel editor is created using the EMF .editor
code generation and is then somehow extended with a context
menu that displays the "Generate Model Code",
"Generate Edit Code"... menue item. How is this done?
Is there some documentation how to do this?

Thanks,
Reinhold
Re: Extending the generated editor [message #415540 is a reply to message #415538] Thu, 20 December 2007 11:07 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Reinhold,

You can find an example in the
org.eclipse.emf.codegen.ecore.genmodel.presentation.GenModel ActionBarContributor.

Regards,
Eike Stepper
----
http://wiki.eclipse.org/CDO
http://wiki.eclipse.org/Net4j



Reinhold Bihler schrieb:
> Hello,
>
> how can I extend the editor generated from an Ecore model
> with a menu or context menu?
>
> E.g. for the EMF4Net component we are modeling a
> CsharpGenModel.ecore model that is similar to EMF's
> Genmodel.ecore model. We would like to extend the
> CsharpGenModel editor in the same way EMF's genmodel
> editor was extended.
>
> The EMF genmodel editor is created using the EMF .editor
> code generation and is then somehow extended with a context
> menu that displays the "Generate Model Code",
> "Generate Edit Code"... menue item. How is this done?
> Is there some documentation how to do this?
>
> Thanks,
> Reinhold
>
>
>


Previous Topic:ecore2xml using XMLMap created in the ecore2xml model
Next Topic:I cannot find the package 'org.eclipse.emf.ecore.xmi' in the org.eclipse.emf. ecore plugin v 2.3.1.
Goto Forum:
  


Current Time: Sat Apr 27 00:45:38 GMT 2024

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

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

Back to the top