Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Adding a new generation project to genmodel
Adding a new generation project to genmodel [message #421459] Thu, 07 August 2008 12:09 Go to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Hi Ed and others,

I've been working lately with CDO in one of our projects at Open
Canarias. Right now I'm trying to develop a CDO-ready editor generator
instead of using the default CDOEditor, by extending the generated
editor from an EMF model with the necessary logic to make it compatible
with CDO. I already made it work by manually modifying an EMF generated
editor. Next step, generating it!

So what I would like to do now is adding a new generation project kind
to the genmodel of a CDO-Native model, allowing me to choose it in the
generation menu of the .genmodel model.

How could this be achieved?

First of all JET. But there are two alternatives: using the original JET
included in EMF, or using the new M2T JET project... any clue? Which one
should I work with?. EMF seems to be still working with it's own one.

Secondly, are there any extension points to add new generation project?
Which is the way to add this new generation projects to genmodel?

Thanks in advance :)

Victor.
Re: Adding a new generation project to genmodel [message #421461 is a reply to message #421459] Thu, 07 August 2008 13:32 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Víctor,

Comments below.

Víctor Roldán Betancort wrote:
> Hi Ed and others,
>
> I've been working lately with CDO in one of our projects at Open
> Canarias. Right now I'm trying to develop a CDO-ready editor generator
> instead of using the default CDOEditor, by extending the generated
> editor from an EMF model with the necessary logic to make it
> compatible with CDO. I already made it work by manually modifying an
> EMF generated editor. Next step, generating it!
>
> So what I would like to do now is adding a new generation project kind
> to the genmodel of a CDO-Native model, allowing me to choose it in the
> generation menu of the .genmodel model.
>
> How could this be achieved?
Easier said than done hey...
>
> First of all JET. But there are two alternatives: using the original
> JET included in EMF, or using the new M2T JET project... any clue?
Best to try to reuse what's all there already.
> Which one should I work with?. EMF seems to be still working with it's
> own one.
Yes, we're meaning to move, but with on active developer, that to is
easier said than done.
>
> Secondly, are there any extension points to add new generation project?
Not so much. Probably it's better to try to make the generated editor
project be the CDO editor.
> Which is the way to add this new generation projects to genmodel?
I don't think it's so easy to do this. It's best to use the debugger to
explore how the editor project is currently created and work from
there. Having a look at org.eclipse.emf.examples.generator.validator
will help understand how to generate additional artifacts.
>
> Thanks in advance :)
>
> Victor.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Adding a new generation project to genmodel [message #421462 is a reply to message #421461] Thu, 07 August 2008 14:00 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Ed,

thanks for your comments. Good to know what kind of task I'm facing.
I'll try to debug the the generation process.

Cheers!
Victor

Ed Merks escribió:
> Víctor,
>
> Comments below.
>
> Víctor Roldán Betancort wrote:
>> Hi Ed and others,
>>
>> I've been working lately with CDO in one of our projects at Open
>> Canarias. Right now I'm trying to develop a CDO-ready editor generator
>> instead of using the default CDOEditor, by extending the generated
>> editor from an EMF model with the necessary logic to make it
>> compatible with CDO. I already made it work by manually modifying an
>> EMF generated editor. Next step, generating it!
>>
>> So what I would like to do now is adding a new generation project kind
>> to the genmodel of a CDO-Native model, allowing me to choose it in the
>> generation menu of the .genmodel model.
>>
>> How could this be achieved?
> Easier said than done hey...
>>
>> First of all JET. But there are two alternatives: using the original
>> JET included in EMF, or using the new M2T JET project... any clue?
> Best to try to reuse what's all there already.
>> Which one should I work with?. EMF seems to be still working with it's
>> own one.
> Yes, we're meaning to move, but with on active developer, that to is
> easier said than done.
>>
>> Secondly, are there any extension points to add new generation project?
> Not so much. Probably it's better to try to make the generated editor
> project be the CDO editor.
>> Which is the way to add this new generation projects to genmodel?
> I don't think it's so easy to do this. It's best to use the debugger to
> explore how the editor project is currently created and work from
> there. Having a look at org.eclipse.emf.examples.generator.validator
> will help understand how to generate additional artifacts.
>>
>> Thanks in advance :)
>>
>> Victor.
Previous Topic:Override model methods ?
Next Topic:Re: JPOXMappingException: URI <X> does not translate to an eclass
Goto Forum:
  


Current Time: Tue Apr 16 20:36:52 GMT 2024

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

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

Back to the top