Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Tutorial for creating UML programmatically
Tutorial for creating UML programmatically [message #735857] Wed, 12 October 2011 18:08 Go to next message
Alexander is currently offline Alexander
Messages: 7
Registered: July 2009
Junior Member
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 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 3849
Registered: July 2009
Senior Member
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
Previous Topic:How to create a method with a generic collection type
Next Topic:how can i access the stereotype of an element
Goto Forum:
  


Current Time: Thu Apr 24 15:03:33 EDT 2014

Powered by FUDForum. Page generated in 0.02047 seconds