epsilonlabs / emc-ptcim

EMC driver for the PTC Integrity Modeler
Eclipse Public License 1.0
2 stars 0 forks source link

Use selected element as root not trivial #11

Open arcanefoam opened 8 years ago

arcanefoam commented 8 years ago

Although the documentation mentions two associations (Child Object, Owned Contents) as a way to get A collection of items that are directly scoped to the item or the items that are children of the item, this associations do not work for all types.

It works if the selected element is a class, but it doesn't work if the selected element is a Project. In that case we would need to use "Package Item" and do a recursive search.

Hence, depending on the type of the selected element, we might need to provide different ways of getting all the elements of a given type. This might prove hard if we need to test all types and determine how to get the "owned contents" in each case.

Maybe start with package and "the rest". Fix as use cases appear and different strategies are required.