|Package: get EClass by name? [message #503115]
||Thu, 10 December 2009 17:41
| No real name
Registered: July 2009
is there a way to get an EClass returned from the Package by giving it
the name of the class as a String?
Example: I have the String "InputEvent" and want to get the EClass
InputEvent from my package. I've seen that there are methods like
'Package.eINSTANCE.getInputEvent()' which returns the EClass InputEvent.
So I could use that method and a Mapping<String, EClass> to map every
String to its corresponding class, but a method like 'getEClass(String
eClassName)' would be more comfortable.
Is there anytinhg like that?
Powered by FUDForum
. Page generated in 0.06559 seconds