Hi Usman,
On 12 May 2011, at 17:03, Usman Bhatti wrote:
For nested types, I am setting the containing class to be the container entity of the nested class.
Good.
I am trying to create a Tree View for my Moose entities. So, I have Namespace Namespace Class Method .... (Just to see my results are correct...) Earlier I was using downcast to change container entity into a Namespace. That allowed me to navigate from a parent namespace to a child namespace using Namespace.getChildScope(). However, Container entity does not allow me to perform this navigation as the only thing available with ContainerEntity is belongsTo. My question is: Why cannot we ascertain the containing elements of a ContainerEntity?
There is no unified traversal from parent to children because there was no real use case until now. So you have to construct your tree manually.
Cheers, Doru
thanx in advanace,
Usman _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Some battles are better lost than fought."