Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » getContainmentReferences error(getContainmentReferences error)
getContainmentReferences error [message #1061416] Fri, 31 May 2013 14:18 Go to next message
Arseniy Isakov is currently offline Arseniy IsakovFriend
Messages: 33
Registered: May 2012
Member
Hello

I am very new in Epsilon. I tried to create my first emf definition. but diring GMF editor generation I am getting following error

eclipse.buildId=M20120914-1800
java.version=1.7.0_21
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.modeling.product -keyring /Users/arseniy/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.modeling.product -keyring /Users/arseniy/.eclipse_keyring -showlocation

Error
Fri May 31 10:12:54 EDT 2013
Method 'getContainmentReferences' not found (bundleresource://614.fwk813364375/transformations/ECore2GMF.eol@189:38)

Method 'getContainmentReferences' not found (bundleresource://614.fwk813364375/transformations/ECore2GMF.eol@189:38)
at org.eclipse.epsilon.eol.execute.PointExecutor.executeOperation(PointExecutor.java:167)
at org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointExecutor.java:75)
at org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointExecutor.java:44)
at org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointExecutor.java:90)
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ExecutorFactory.java:226)
at org.eclipse.epsilon.eol.execute.ForStatementExecutor.execute(ForStatementExecutor.java:38)
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ExecutorFactory.java:226)
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ExecutorFactory.java:196)
at org.eclipse.epsilon.eol.execute.StatementBlockExecutor.execute(StatementBlockExecutor.java:26)
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ExecutorFactory.java:226)
at org.eclipse.epsilon.eol.EolModule.execute(EolModule.java:43)
at org.eclipse.epsilon.eugenia.EugeniaActionDelegate.runImpl(EugeniaActionDelegate.java:151)
at org.eclipse.epsilon.eugenia.GenerateAllDelegate.generateGMFBasicModels(GenerateAllDelegate.java:204)
at org.eclipse.epsilon.eugenia.GenerateAllDelegate.runImpl(GenerateAllDelegate.java:110)
at org.eclipse.epsilon.eugenia.GenerateAllDelegate$1.run(GenerateAllDelegate.java:59)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

my emf definition is

@namespace(uri="http://www.eclipse.org/2008/mindmap", prefix="mindmap")
@gmf(foo="bar")
package mindmap;

class Map {
attr String title;
attr EDate created;

val MapElement[*] elements;
@gmf.link(target.decoration="arrow", style="dash")
ref Topic[*] rootTopics;
}

abstract class MapElement {
attr String name;
}

@gmf.node(label="title")
class Topic extends MapElement {
op Topic allSubtopics();
attr String description;
attr EDate startdate;
attr EDate enddate;
attr Priority priority;
@gmf.link(target.decoration="arrow", style="dash")
ref Topic[*]#parents subtopics;
@gmf.link(target.decoration="arrow", style="dash")
ref Topic#subtopics parents;
}

enum Priority {
HIGH = 0;
MEDIUM = 1;
LOW = 2;
}
@gmf.link(source="source", target="target", style="dot", width="2")
class Relationship extends MapElement {
attr Type type;
ref Topic[1] target;
ref Topic[1] source;
}

enum Type {
DEPENDENCY = 0;
INCLUDE = 1;
EXTEND = 2;
}


Thanks
Arseniy Isakov



Re: getContainmentReferences error [message #1061417 is a reply to message #1061416] Fri, 31 May 2013 14:21 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 919
Registered: July 2009
Senior Member
Hi Arseniy,

I suspect that your Map class should be annotated as @gmf.diagram.

Cheers,
Dimitris
Re: getContainmentReferences error [message #1061439 is a reply to message #1061417] Fri, 31 May 2013 15:50 Go to previous message
Arseniy Isakov is currently offline Arseniy IsakovFriend
Messages: 33
Registered: May 2012
Member
Thanks Dimitris
You are right.

Previous Topic:Creating xtext file as model from GMF
Next Topic:EOL and Flock
Goto Forum:
  


Current Time: Mon Dec 22 13:02:17 GMT 2014

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

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