Mea culpa. It's called container, not parentScope.
packagedIn is about packages, belongsTo is about namespaces.
Doru
On Sep 4, 2008, at 11:31 AM, Bergel, Alexandre wrote:
FAMIXClass>>belongsTo ^self parentScope
Should it be instead:? FAMIXClass>>belongsTo ^ self packagedIn
parentScope is defined nowhere. But packageIn returns nil (I guess no package has been defined, woaa :-)
FAMIXMethod>>belongsTo ^self parentClass
This one was already there.
Cheers, Alexandre
Cheers, Doru
On Sep 4, 2008, at 11:08 AM, Bergel, Alexandre wrote:
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@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"Next time you see your life passing by, say 'hi' and get to know her."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"Be rather willing to give than demanding to get."