Home » Modeling » TMF (Xtext) » knowing the java package of the model generated classes
| |
Re: knowing the java package of the model generated classes [message #643686 is a reply to message #643666] |
Tue, 07 December 2010 20:14 |
|
On 12/07/2010 07:46 PM, Sebastian Zarnekow wrote:
> Hi Lorenzo,
>
> you have to find the respective genmodel and inspects its values. The
> EPackage itself does not know about the (to be) generated artifacts.
>
> Regards,
> Sebastian
thanks
for this purpose it might be enough to look into the same directory
where the EPackage, however, given an EPackage I can't seem to find a
way to get the path of the corresponding ecore... I guess I have to
store that information somewhere else when I load the EPackage, can it be?
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
| |
Re: knowing the java package of the model generated classes [message #643790 is a reply to message #643701] |
Wed, 08 December 2010 09:32 |
|
On 12/07/2010 11:15 PM, Meinte Boersma wrote:
> Alternatively, you could reference (through a URI) the GenModel instance
> (from the GenModel Ecore meta model) which holds a reference (URI) to
> the EPackage.
Hi
you mean: instead of loading the .ecore file, load the .genmodel file,
then from there, through GenModel, get a reference to EPackage?
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
| | | |
Goto Forum:
Current Time: Thu Sep 26 06:13:05 GMT 2024
Powered by FUDForum. Page generated in 0.05585 seconds
|