Tutorial for creating UML programmatically [message #735857] |
Wed, 12 October 2011 18:08  |
Eclipse User |
|
|
|
hi,
I'm trying to generate uml from my application. So, in the end I want my
application to save a *.uml- File which I can open with MDT-UML2-
compilant tools (e.g. Papyrus).
Unfortunatly, most tutorials assume one is using some kind of graphical
editor to generate uml diagramms. The only text covering programmatic
generation I found so far is
http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Getting_Started_with_UML2/article.html.
That one seems to be old (eclipse 3.4 as requirement?) and it does not
cover some topics (especially templates/generics).
I followed that examples and I managed to generate classes, interfaces,
fields and methods, but I couldn't generate templates by now. I ended up
with an IllegalArgumentException somewhere deep in UML2 sources. I am
quite sure it is me using the API wrong. Is there any tutorial about it?
Regards,
Alex
|
|
|
Re: Tutorial for creating UML programmatically [message #736149 is a reply to message #735857] |
Thu, 13 October 2011 12:51  |
Eclipse User |
|
|
|
Hi
My sympathies; I found it hard too. You can find examples to copy in
org.eclipse.ocl/model/OCL.uml and org.eclipse.ocl.uml/model/OCLUML.uml.
Using Validate within the UML Model Editor is also helpful.
Regards
Ed Willink
On 12/10/2011 23:08, Alexander wrote:
> hi,
>
> I'm trying to generate uml from my application. So, in the end I want
> my application to save a *.uml- File which I can open with MDT-UML2-
> compilant tools (e.g. Papyrus).
>
> Unfortunatly, most tutorials assume one is using some kind of
> graphical editor to generate uml diagramms. The only text covering
> programmatic generation I found so far is
> http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Getting_Started_with_UML2/article.html.
> That one seems to be old (eclipse 3.4 as requirement?) and it does not
> cover some topics (especially templates/generics).
>
> I followed that examples and I managed to generate classes,
> interfaces, fields and methods, but I couldn't generate templates by
> now. I ended up with an IllegalArgumentException somewhere deep in
> UML2 sources. I am quite sure it is me using the API wrong. Is there
> any tutorial about it?
>
> Regards,
> Alex
|
|
|
Powered by
FUDForum. Page generated in 0.25006 seconds