Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » retrieving the EFactory programmatically/dynamically
retrieving the EFactory programmatically/dynamically [message #760950] Mon, 05 December 2011 12:09 Go to previous message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1116
Registered: July 2009
Senior Member
Hi

say that I have the fully qualified name of a class implementing
EObject; is there a way to retrieve the corresponding EFactory?

My context is a DSL where I have something like

new org.my.emf.model.MyObject()

and during the generation I have to retrieve the EFactory corresponding
to org.my.emf.model.MyObject

I don't think there's a kind of registry holding this information, but
it's worth trying and ask :)

thanks in advance
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:EMF generated editor customization issue with children
Next Topic:Element root not accessible via DocumentRoot EObject.
Goto Forum:
  


Current Time: Sun May 19 11:11:04 EDT 2013

Powered by FUDForum. Page generated in 0.01864 seconds