Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » GMF node disappears
GMF node disappears [message #1313493] Thu, 24 April 2014 22:51 Go to next message
Sam Brit is currently offline Sam BritFriend
Messages: 1
Registered: April 2014
Junior Member
Hello,

I'm trying to create an editor that allows us to have nodes (goals) with an AND node between them. When running the editor, I create three nodes: two goals and an AND node. It's created the connection between Goal-AND and then when I create the connection to AND-Goal, the second goal just disappears in the editor, despite being in the emf resource.

What is the problem? The metamodel is:

@gmf(foo="bar")
@namespace(uri="goalModel/1.0", prefix="goalModel")
package goalmodel;

@gmf.diagram(foo="bar")
class GoalModel {
  ref Goal[1] root;
  val Node[*] nodes;
}

abstract class Node {
  attr String name;
}

@gmf.node(figure="rectangle", label.icon="false", color="215,230,238", label="name", size="40,20", phantom="true")
class Goal extends Node {  
  @gmf.link(source.decoration="arrow")
  val Link[*] links;
}

class Link {  
  attr String name;
}

@gmf.node(figure="rectangle", label.icon="false", color="215,230,238", label="name", size="10,10", phantom="true")
class AND extends Link {
  @gmf.link
  val Goal[*] goals;
}


Thank you!
Re: GMF node disappears [message #1314564 is a reply to message #1313493] Fri, 25 April 2014 12:56 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi,

I'm not sure if phantom nodes work well with multiple levels of containment. Would it be possible to add a containment reference for links in GoalModel and turn the "links" and "goals" references to ref?

Cheers,
Dimitris
Previous Topic:[EVL] conditional syntax
Next Topic:[EMC] CSV driver not writing rows
Goto Forum:
  


Current Time: Fri Apr 26 04:08:52 GMT 2024

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

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

Back to the top