Package: get EClass by name? [message #503115] |
Thu, 10 December 2009 17:41  |
Eclipse User |
|
|
|
Hi,
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?
Thanks,
Matthias
|
|
|
|
|
Re: Package: get EClass by name? [message #1027764 is a reply to message #1027405] |
Wed, 27 March 2013 07:39  |
Eclipse User |
|
|
|
Roza,
Different packages can have classifiers for the same class name, so
there isn't a general one-to-one mapping from class name to classifier.
On 26/03/2013 7:42 PM, Roza Ghamari wrote:
> I have a followup question. How can I get the related ePackage from a
> class name?
>
> Thanks,
> Roza
>
|
|
|
Powered by
FUDForum. Page generated in 0.04070 seconds