Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Code Generation(Suggested M2T)
Code Generation [message #721449] Thu, 01 September 2011 15:25 Go to next message
Kamesh Sampath is currently offline Kamesh Sampath
Messages: 213
Registered: July 2009
Senior Member
Hi,

I was just trying to play with some code generation with Sapphire and other M2T tools, bit confused on choosing the best one JET / XPand / Accello, each of the provide quiet handy support for EMF, can they be used for Sapphire Models too ??

Pointers ? Links ? A brief on the approach will help

Thanks.

~Kamesh
Re: Code Generation [message #721452 is a reply to message #721449] Thu, 01 September 2011 15:40 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 935
Registered: July 2009
Senior Member
Any general-purpose code generation framework (such as Apache Velocity) should be able to work with Sapphire. Obviously, an EMF specific framework will not work with Sapphire.

Note that if you are looking to do this as part of a contribution to Sapphire, we are very unlikely to accept contributions that come with dependencies. There are some classes in sapphire.sdk.build.processor bundle that make constructing .java files easier. They are used by Sapphire annotation processor. See GenerateImplProcessor.

- Konstantin
Re: Code Generation [message #721537 is a reply to message #721452] Thu, 01 September 2011 23:56 Go to previous message
Kamesh Sampath is currently offline Kamesh Sampath
Messages: 213
Registered: July 2009
Senior Member
OK! Exactly i was trying to generate the Sapphire model class ( ? extends IModelElement), with the wizard that i was developing, its in response to one of the enhancements that was reported.
Previous Topic:Unmarshall XML in Model
Next Topic:Extending Sapphire Wizards
Goto Forum:
  


Current Time: Fri Jul 25 03:04:36 EDT 2014

Powered by FUDForum. Page generated in 0.02283 seconds