Hi Stef,
On 24 Sep 2011, at 10:23, Stéphane Ducasse wrote:
Hi Stef,
ensureClass: is a private method (see the protocol).
An example of how to use the class, can be found in the tests, or in the buildFM3.
processor := FMPragmaProcessor new.
processor queue: FMPragmaProcessorTestDummy.
processor run.
The MoosePragmaProcessor was just my attempt to not have the processor crash when there
is no MSEClass: pragma in the class.
Ok I'm diving into that.
What I will do is to hack the metamodelreport so that I get progress from this side.
And I will look at all the meta stuff in parallel
Now I'm still confused why
>> FMPragmaProcessor new processClass:
FAMIXContainerEntity
>>
>> returns a FM3MetaDescription whose attributes are empty?
And this resetMeta is working.
I told you that processClass: is an internal method (i.e., it is used in combination with
others :)).
So, if you look at the run method, you will see that it also calls
resolveObjectReferences.
Try this:
processor := FMPragmaProcessor new.
description := processor processClass: FMPragmaProcessorTestDummy.
processor resolveObjectReferences.
description inspect
Cheers,
Doru
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"It's not what we do that matters most, it's how we do it."