Hi,
If I have a FAMIXNamespace, how do I obtain a
reference to the model
that contains this namespace?
namespace mooseModel
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:
FAMIXNamespace>>childScopes
<MSEProperty ... > <derived>
^ self namespaces
FAMIXPackage>>childScopes
<MSEProperty ... > <derived>
^ self packages
What do you think?
Cheers,
Doru
--
www.tudorgirba.com
"No matter how many recipes we know, we still value a chef."