How to get the type of the element [message #891636] |
Mon, 25 June 2012 07:48  |
Eclipse User |
|
|
|
Hi,
within my application I am storing UML elements.
private Element element;
How can I get the type of the element? For example, if it is a UML Class, I want to have "Class" as result. When it is a Port "Port" etc. I do not need it as string. Even a "type" is more better.
Any ideas?
Regards,
Tex
|
|
|
Re: How to get the type of the element [message #891670 is a reply to message #891636] |
Mon, 25 June 2012 09:08  |
Eclipse User |
|
|
|
Hi
The MDT/UML2 project is based on Ecore so try eClass().getName().
Regards
Ed Willink
On 25/06/2012 12:48, Tex Iano wrote:
> Hi,
>
> within my application I am storing UML elements.
>
> private Element element;
>
> How can I get the type of the element? For example, if it is a UML
> Class, I want to have "Class" as result. When it is a Port "Port" etc.
> I do not need it as string. Even a "type" is more better.
>
> Any ideas?
>
> Regards,
>
> Tex
|
|
|
Powered by
FUDForum. Page generated in 0.03153 seconds