Ok then you can also have a look at the package DomainGenerator since
long time ago I did
a Smalltalk from (an old version of MOF) metadescription.
I will show you the principle but in that package you have the logic
to compile package, class
add navigation methods
there were tests using a Author, Book... mini model.
So have a look at the code of adrian and like that we can sync when
On 4 mai 07, at 19:33, Adrian Kuhn wrote:
okay, I understand. There is BasicCodeGenerator withAllSubclasses in
MetaDevelopment somewhere, on its class side is an example method
that demonstrates its use. It uses the refactoring browser to create
code. Another example you should find when loading Martin's
PythonDevelopment. He used code generation to generate classes for a
python AST. As it is, there is not yet a BasicCodeGenerator subclass
that generates full Moose entities, but should be easy to do, as this
is just a matter of the class "template".
On 4 May 2007, at 16:20 , sellossa(a)ensieta.fr wrote:
> This is not exactly what I wanted but I recognize that my question
> clear :)
> So, we ‘ve implemented an Importer and we manage to get EMOF
> entities from
> an ECORE file. But now, we want to load it in Moose. Previously,
> you told
> about code generation. Could I have more details about it, please ?
>> maybe the best way to learn about that is to start at the import
>> item. Alas I can not tell you the method name now, as I do not
>> have a
>> VW at hand, but if you search for the menu item string you should
>> find it. Then put self halt there and follow it stepwise in the
>> debugger, and you learn all the import.
>> On 3 May 2007, at 14:23 , sellossa(a)ensieta.fr wrote:
>>> I 've worked on the Importer class and I 've understood how you
>>> create a
>>> model from MSE specifications (I had a look on the method called
>>> But now, I want to know how you manage to load this model in
>>> Moose. I
>>> didn't find the class and the method that do this.
>>> Thank you for your help,
>>> Moose-dev mailing list
> Moose-dev mailing list
Moose-dev mailing list