Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Process in-memory EMF model
Process in-memory EMF model [message #683925] Tue, 14 June 2011 12:54 Go to next message
Markus Krallinger is currently offline Markus Krallinger
Messages: 1
Registered: June 2011
Junior Member
Hello!

I have my models defined in XText, after reading them from the HD they are stored as normal EMF models. In the next processing step I want to analyse them using EOL programmatically.
How can this be done, since I can just execute EOL on something derived from IModel? In the worst case, I would have to read the model again from the harddisk or implement the whole IModel interface. Are there any other suggestions?

Thanks for the help!

Best regards,
Markus
Re: Process in-memory EMF model [message #684445 is a reply to message #683925] Wed, 15 June 2011 11:18 Go to previous message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 700
Registered: July 2009
Senior Member
Hi Markus,

You can use an InMemoryEmfModel to wrap an existing EMF resource. An example that shows how to do this is available here: https://dev.eclipse.org/svnroot/modeling/org.eclipse.gmt.epsilon/trunk/examples/org.eclipse.epsilon.eugenia.examples.friends.callegl (you'll need to check out all the org...friends.* sibling projects to get this to work)

Cheers,
Dimitris
Previous Topic:[Eugenia] FixGMFGen and nullpointerexception
Next Topic:(no subject)
Goto Forum:
  


Current Time: Sat Apr 19 05:53:42 EDT 2014

Powered by FUDForum. Page generated in 0.01824 seconds