Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Problem while creating GMF models from xsd.
Problem while creating GMF models from xsd. [message #536101] Thu, 27 May 2010 04:47 Go to next message
login is currently offline loginFriend
Messages: 13
Registered: May 2010
Junior Member
Hi All,
I am new to GMF. I have been trying to understand the concept of generating Ecore model from xsd.
I generated a Ecore model from xsd and used the same ecore file to generate genmodel. gen model created successfully.
But when i tried generating the "gmfgen" model out of genmodel.
It throws an error.

I need to know the following :
1.)Does GMF supports a Ecore model generated out of xsd.
2) I tried using Eugenia to generate gmfgen and gmf diagram from sample .emf model it works fine.But when i tried generating the ecore from "xsd" .It has some issues.
Does any body know how to go about it?
I got this error
Method 'getContainmentReferences' not found (190:38)
at org.eclipse.epsilon.eol.execute.PointExecutor.executeOperati on(PointExecutor.java:190)
at org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointE xecutor.java:67)
at org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointE xecutor.java:37)
at org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointE xecutor.java:123)
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:178)
at org.eclipse.epsilon.eol.execute.ForStatementExecutor.execute (ForStatementExecutor.java:44)
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:178)
at org.eclipse.epsilon.eol.execute.StatementBlockExecutor.execu te(StatementBlockExecutor.java:33)
at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:178)
at org.eclipse.epsilon.eol.EolModule.execute(EolModule.java:57)
at org.eclipse.epsilon.eugenia.EolTransformationActionDelegate. runImpl(EolTransformationActionDelegate.java:136)
at org.eclipse.epsilon.eugenia.EolTransformationActionDelegate$ 1.run(EolTransformationActionDelegate.java:65)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)



Thanks in advance,

[Updated on: Thu, 27 May 2010 04:50]

Report message to a moderator

Re: Problem while creating GMF models from xsd. [message #536140 is a reply to message #536101] Thu, 27 May 2010 08:53 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 911
Registered: July 2009
Senior Member
Hi,

Could you please confirm that you've added @gmf.xxx annotations to your metamodel as per http://www.eclipse.org/gmt/epsilon/doc/articles/eugenia-gmf- tutorial/?

Cheers,
Dimitris
Re: Problem while creating GMF models from xsd. [message #536186 is a reply to message #536140] Thu, 27 May 2010 10:48 Go to previous messageGo to next message
login is currently offline loginFriend
Messages: 13
Registered: May 2010
Junior Member
Hi
Thanks for the response.
I was unable to find the link given.
I am trying to google out some of the samples to add GMF annotation to the the metamodel.I dint get it.
and
Should we always use emf instead xsd for Eugenia sample.?
Re: Problem while creating GMF models from xsd. [message #536215 is a reply to message #536186] Thu, 27 May 2010 11:57 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 911
Registered: July 2009
Senior Member
Hi,

The forum parser apparently thought that '?' was part of the link. Here's the link again (without the '?'): http://www.eclipse.org/gmt/epsilon/doc/articles/eugenia-gmf- tutorial/

You don't necessarily need to use Emfatic to specify your Ecore model. If you already have a .ecore model from your .xsd you can open it and add the annotations using the tree-based Ecore editor.

Cheers,
Dimitris
Previous Topic:Problem while creating GMF models from xsd.
Next Topic:Re: Problem while creating GMF models from xsd.
Goto Forum:
  


Current Time: Sun Nov 23 04:56:39 GMT 2014

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

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