major
nice-to-have
minor
major
#25880
Vereinfachte Baum-Templates für polymorphe Bäume erweitern
The simplified tree templates currently require the specification of a tree type and a structuring reference of that type. If you want to create a tree consisting of nodes of different types—in particular, nodes that can have children and nodes that cannot have children—then the abstract tree type cannot directly define the structuring reference. Instead, only a subtype of the tree type defines the tree’s structure attribute.
In such a case, however, the template does not offer the structuring reference as a selection option, because only references declared directly in the tree type or its supertypes are offered.
Improvement
Offer all references of the tree type, its supertypes, *and* subtypes as options for the tree reference.
Code Migration
Some utilities have been moved from `tl:MetaElementUtil` in `element` to `tl:TLModelUtil` in `top-logic`:
- getMetaAttributesInHierarchy
- getMetaAttributes
- getLocalMetaAttributes
- getSubMetaElements
Test
Create a DemoType tree with the following parameters: