Document metaclasses? [message #431806] |
Mon, 27 July 2009 15:59 |
Eclipse User |
|
|
|
Originally posted by: formatzeh.gmx.de
Is it possible to add some documentation to metaclasses in a metamodel?
And is it possible to let the documentation be displayed in some place
of the second Eclipse instance containing the generated editor?`Maybe in
the status line?
regards
Gilbert
|
|
|
|
Re: Document metaclasses? [message #431877 is a reply to message #431812] |
Tue, 28 July 2009 15:29 |
Eclipse User |
|
|
|
Originally posted by: formatzeh.gmx.de
Ed Merks wrote:
> Gilbert,
>
> With EAnnotations, anything is possible.
> EcoreUtil.getDocumentation/setDocumentation shows how documentation that
> will appear in the generated Javadoc is supported.
Thanks Ed. Now I'm trying to get an EModelElement to pass to
getDocumentation. When an element is selected in the tree of the
generated editor I only get the EObject instance. How can I get then the
EModelElement?
|
|
|
|
Re: Document metaclasses? [message #431892 is a reply to message #431887] |
Tue, 28 July 2009 17:20 |
Eclipse User |
|
|
|
Originally posted by: formatzeh.gmx.de
Ed Merks wrote:
> You'll have to do an instance of test and cast.
That's not possible because my objects are only EObjects. Did I forget
to specify a special Ecore supertype for the elements in my metamodel?
> Or if you have
> instances of some model, you'd use eClass() to get at the Ecore model
> for it...
How do I get then to the EModelElement if I have the EClass?
Sorry for the silly questions but those are my first real steps with emf.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02679 seconds