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 attributes
initialize class
add navigation methods
add descriptino
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
I'm back
Stef
On 4 mai 07, at 19:33, Adrian Kuhn wrote:
Hi Sara,
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".
cheers,
AA
On 4 May 2007, at 16:20 , sellossa(a)ensieta.fr wrote:
> Hello,
>
> This is not exactly what I wanted but I recognize that my question
> wasn’t
> 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 ?
>
> thank,
>
> Sara
>
>
>
>
>> Sara,
>>
>> maybe the best way to learn about that is to start at the import
>> menu
>> 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.
>>
>> cheers,
>> AA
>>
>>
>>
>> On 3 May 2007, at 14:23 , sellossa(a)ensieta.fr wrote:
>>
>>> Hello,
>>>
>>>
>>> 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
>>> importMSE)
>>>
>>> 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,
>>>
>>> Sara
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> Moose-dev(a)iam.unibe.ch
>>>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev(a)iam.unibe.ch
>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev