class name [message #473111] |
Thu, 07 June 2007 18:43  |
Eclipse User |
|
|
|
Hi,
I know tha this question is so easy, but I can not resolve it!
I select a class (named Client1) with stereotype named Client. I want to
extract the class's name
this is the value of my selection (type Element)
"org.eclipse.uml2.uml.internal.impl.ClassImpl@188a387 (name: Client1,
visibility: <unset>) (isLeaf: false, visibility: public, isAbstract: false)
(isActive: false, isAbstract: false)"ant to extract from this element the
name Client1.
I used getclass().getname(), getSimplename(), getclass().tostring() but all
this method reffer to classimpl.
and eclass() method reffer to Class.
thank you!
asma
so I w
|
|
|
|
|
Re: class name [message #619779 is a reply to message #473111] |
Thu, 07 June 2007 09:51  |
Eclipse User |
|
|
|
Originally posted by: firstname.name.gmail.com
In the last post, on 06/08 about 12h, "charfi" (charfi asma) wrote:
charfi> I want to extract the class's name this is the value of my
charfi> selection (type Element)
You have to cast your selection to a typed NamedElement (if you are sure to only
receive NamedElements..)
--
F. Lagarde
|
|
|
|
Powered by
FUDForum. Page generated in 0.04700 seconds