Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Eugenia return boolean problem
Eugenia return boolean problem [message #727266] Tue, 20 September 2011 18:45 Go to next message
giovi disanto is currently offline giovi disantoFriend
Messages: 58
Registered: September 2011
Member
Hi,
i've tested all examples in the site and all works! Now i've to build an editor from a complex ecore. i want to try before with a simple ecore and emf file... this is the result:

@namespace(uri="Site", prefix="Site")
package Site;

@gmf.diagram(foo="bar")
class Site {
attr String Name;
ref Page[*] pages;
}

@gmf.node(label="Title")
class Page {
attr String Title;
@gmf.link(style="dash")
ref Link[*] to;
}

@gmf.node(label="url")
class Link {
attr String url;
}

but when i build editor with eugenia i receive an error in SiteViewProvider.Java on method protected boolean provides(CreateNodeViewOperation op). At the end of the method there is a return without boolean. Where is my error?
Re: Eugenia return boolean problem [message #728497 is a reply to message #727266] Fri, 23 September 2011 11:14 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi,

Could you try replacing

@gmf.diagram(foo="bar")
class Site {
attr String Name;
ref Page[*] pages;
}

with

@gmf.diagram(foo="bar")
class Site {
attr String Name;
val Page[*] pages;
val Link[*] links;
}

Cheers,
Dimitris
Re: Eugenia return boolean problem [message #728567 is a reply to message #728497] Fri, 23 September 2011 13:35 Go to previous messageGo to next message
giovi disanto is currently offline giovi disantoFriend
Messages: 58
Registered: September 2011
Member
in this way diagram code work but i've problem with model code in the main project.... but what is error on my original model?
Re: Eugenia return boolean problem [message #728589 is a reply to message #728567] Fri, 23 September 2011 14:01 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi,

Only objects that can be placed in one of your top-level node's (i.e. Site) containment references (val) can appear on the diagram.

Cheers,
Dimitris
Re: Eugenia return boolean problem [message #730168 is a reply to message #728589] Tue, 27 September 2011 18:38 Go to previous messageGo to next message
giovi disanto is currently offline giovi disantoFriend
Messages: 58
Registered: September 2011
Member
but a top-level node is only a the node with @gmf.diagram annotation?
Re: Eugenia return boolean problem [message #730591 is a reply to message #730168] Wed, 28 September 2011 16:51 Go to previous messageGo to next message
giovi disanto is currently offline giovi disantoFriend
Messages: 58
Registered: September 2011
Member
ok! i understand after looking a gmfmap model that top-level node is only the root element and elements who have a containment reference (val) with root element. Then all elemenrts who have a containment reference whit these can appear on the diagram, it is correct?
It's the same also a calssic GMF project?

Thanks
Re: Eugenia return boolean problem [message #731224 is a reply to message #730591] Fri, 30 September 2011 10:18 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

> It's the same also a calssic GMF project?

That's my understanding - but there may be workarounds which I'm not familiar with.

Cheers,
Dimitris
Previous Topic:Merging two instances of a model in one graphical editor
Next Topic:[Epsilon] Library jar for completely standalone
Goto Forum:
  


Current Time: Tue Apr 23 16:30:58 GMT 2024

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

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

Back to the top