On 21 Dec 2009, at 15:04, Tudor Girba wrote:
Hi,
If I have a FAMIXNamespace, how do I obtain a
reference to the
model that contains this namespace?
namespace mooseModel
Ugh, dont know why I did not see that. Thanks!
FAMIXNamespace has child scopes instead of
namespaces, which makes
it ugly to define a Glamour tree view on models and their
namespaces. I have therefore added the code below, I think it would
be a good idea to add that to the core as well.
FAMIXNamespace>>allNamespaces
^ self childScopes
Indeed, this part will probably need rethinking a bit. Probably the
best thing is to define childScopes as derived and override it in
the subclasses to offer uniform interface between Namespace and
Package. So, basically we could have the same pattern as with
belongsTo:
I like your childScopes approach better than mine, you are more
generic than my quick fix.
--
Johan Fabry
jfabry(a)dcc.uchile.cl -
http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile