[Eugenia] Problem with recursive phantom objects [message #1069484] |
Tue, 16 July 2013 01:00 |
Manuel Hegner Messages: 4 Registered: April 2013 |
Junior Member |
|
|
Hi,
I have a question concerning the phantom annotation. First I tried this example. Then I tried to change the emf file so that groups can have subgroups. The required the Group class to also be a phantom. In the resulting editors were no subgroups visible. If I created a new subgroup relation the subgroups vanished.
Here is the changed emf:
@namespace(uri="phantom", prefix="phantom")
package phantom;
@gmf.diagram
class Model extends NamedElement {
val Group[*] groups;
}
class NamedElement {
attr String name;
}
@gmf.node(label="name", phantom="true")
class Group extends NamedElement {
@gmf.link(label="member")
val Member[*] members;
@gmf.link(label="subgroup")
val Group[*] subGroups;
}
@gmf.node(label="name", phantom="true")
class Member extends NamedElement {
}
My question is: How can I display a tree-like object structure using links instead of containments.
Thanks
[Updated on: Tue, 16 July 2013 01:00] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02081 seconds