I discovered this when pressing belongsTo in the MooseFinder: a
debugger opens.
So, for FAMIXMethod, belongsTo should return parentClass. For
FAMIXClass, belongsTo should return parentScope.
I do not know how to do this. I am waiting to get FAMIX2 meta
described instead.
Because we cannot encode this information in FM3, the decision was
to
just generate self shouldImplement. The rest should be done by hand.
No idea how.
Cheers,
Alexandre
> On Sep 4, 2008, at 10:04 AM,
Alexandre Bergel wrote:
>> Hi!
>
>> Is the following method the way it should be?
>> -=-=-=-=-=-=-=-=-=-=-=-=
>> FAMIXNamedEntity>>belongsTo
>> <MSEProperty: #belongsTo type: #FAMIXContainerEntity> <derived
>> "This stub-code was automatically generated.
Please fill in."
>> self notImplemented
>> -=-=-=-=-=-=-=-=-=-=-=-=
>
>> When I run the following code, I get a rollback on
this
>> notImplemented:
>> -=-=-=-=-=-=-=-=-=-=-=-=
>> | class |
>> class := FAMIXClass new.
>> class name: 'AClass'.
>> class addToMethods: (FAMIXMethod new name: 'aMethod'; yourself).
>> class addToMethods: (FAMIXMethod new name: 'anotherMethod';
>> yourself).
>> (class mooseDescription allAttributes detect: [:p | p name ==
>> #belongsTo]) getFrom: class
>> -=-=-=-=-=-=-=-=-=-=-=-=
>
>> Any idea ?
>
>> Cheers,
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel
http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>>
_______________________________________________
>> Moose-dev mailing list
>> Moose-dev(a)iam.unibe.ch
>>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> --
>
www.tudorgirba.com
>
www.tudorgirba.com/blog
> "Problem solving should be concentrated on
describing
> the problem in a way that is relevant for the solution."
>
_______________________________________________
> Moose-dev mailing list
> Moose-dev(a)iam.unibe.ch
>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.