Skip to main content



      Home
Home » Modeling » Epsilon » Eugenia return boolean problem
Eugenia return boolean problem [message #727266] Tue, 20 September 2011 14:45 Go to next message
Eclipse UserFriend
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 07:14 Go to previous messageGo to next message
Eclipse UserFriend
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 09:35 Go to previous messageGo to next message
Eclipse UserFriend
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 10:01 Go to previous messageGo to next message
Eclipse UserFriend
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 14:38 Go to previous messageGo to next message
Eclipse UserFriend
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 12:51 Go to previous messageGo to next message
Eclipse UserFriend
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 06:18 Go to previous message
Eclipse UserFriend
> 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: Sat Jul 26 19:26:20 EDT 2025

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

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

Back to the top