I have a simple EMF model of the following type:
EClass FooGroup {
EString name;
@Properties(containment=true, upper=-1)
List<Node> nodes;
}
EClass BarGroup {
EString name;
@Properties(containment=true, upper=-1)
List<Node> nodes;
}
EClass Node {
EString name;
}
I want to show all names of the nodes in a simple TableViewer
, together with the name of their parent group. Unfortunately, eContainer()
is an operation and not a feature. This means that I can not use the JFace Databinding framework to link this property to the GUI.
How can I solve this problem? Do I create a derived feature? Are there any tricks?