Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Eugenia] Problem with recursive phantom objects
[Eugenia] Problem with recursive phantom objects [message #1069484] Tue, 16 July 2013 01:00 Go to next message
Manuel Hegner is currently offline Manuel HegnerFriend
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

Re: [Eugenia] Problem with recursive phantom objects [message #1070091 is a reply to message #1069484] Wed, 17 July 2013 08:15 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2162
Registered: July 2009
Location: York, UK
Senior Member

Hi Manuel,

This might be a GMF issue. Could you please send a message to the GMF forum with your .ecore/.gmf* models attached and let us know if someone comes up with a satisfactory solution?

Cheers,
Dimitris
Re: [Eugenia] Problem with recursive phantom objects [message #1081073 is a reply to message #1070091] Tue, 06 August 2013 19:22 Go to previous message
Manuel Hegner is currently offline Manuel HegnerFriend
Messages: 4
Registered: April 2013
Junior Member
I created a bug report here. Another user explained why this behaviour is expected and not a bug. He also attached a fixed version of the gmfmap file to the bug entry.

In my opinion there should be an option in eugenia to create a gmfmap file like his. This would enable out of the box support for diagramms displaying tree-like structures (e.g. groups with subgroups).
Previous Topic:[EPL] type-of vs. kind-of relationships
Next Topic:model transformation with ETL
Goto Forum:
  


Current Time: Thu Apr 18 23:36:05 GMT 2024

Powered by FUDForum. Page generated in 0.01977 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top