Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Programmatically generating Class Diagrams
Programmatically generating Class Diagrams [message #476512] Wed, 03 June 2009 11:17 Go to next message
Josip Maras is currently offline Josip Maras
Messages: 41
Registered: July 2009
Member
Hi everybody!

I'm building an Eclipse plugin that can be used to generate models from
code. So far i was able to generate a .uml file describing a model. The
next step would be to instantiate a class diagram from that model. Is
there a way to programmatically do that? (now i have to right click my
uml file and choose 'Instantiate Class Diagram')

Thank you
Re: Programmatically generating Class Diagrams [message #476514 is a reply to message #476512] Wed, 03 June 2009 15:08 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana Fesenko
Messages: 530
Registered: July 2009
Senior Member
Hello Josip,

It's a good question you asked. Some discussion about diagram initialization
was here -- news://news.eclipse.org/6785c5267d0e8cb50ee48e39d0a@news.ecl ipse.org
..
We also initialize diagrams programmatically in the tests. Class TestWholeClassDiagram
from plugin org.eclipse.uml2.diagram.clazz.tests does such initialization.
Feel free to use it as a hint.

BTW, Josip, you mentioned that you generate UML from code. I wonder from
what kind of code you generate UML, is it Java or another language? Will
it be free or commercial plugin?

Cheers,
Tanya.

> Hi everybody!
>
> I'm building an Eclipse plugin that can be used to generate models
> from code. So far i was able to generate a .uml file describing a
> model. The next step would be to instantiate a class diagram from that
> model. Is there a way to programmatically do that? (now i have to
> right click my uml file and choose 'Instantiate Class Diagram')
>
> Thank you
>
Re: Programmatically generating Class Diagrams [message #476516 is a reply to message #476514] Thu, 04 June 2009 08:35 Go to previous message
Josip Maras is currently offline Josip Maras
Messages: 41
Registered: July 2009
Member
Hi,

Thank you for your response. I'll try the solution you suggested. I've all
ready checked some of the projects from org.eclipse.uml2, but I'm still an
Eclipse plugin noob and i'm still having difficulties understanding how
things are interconnected). Once again - thank you.

The plugin i'm working on is generating models from php, JavaScript and
Html code (based on Conallen's UML extensions) and it will be open source
- i think by the end of summer..

Thank you
Re: Programmatically generating Class Diagrams [message #623931 is a reply to message #476512] Wed, 03 June 2009 15:08 Go to previous message
Tatiana Fesenko is currently offline Tatiana Fesenko
Messages: 530
Registered: July 2009
Senior Member
Hello Josip,

It's a good question you asked. Some discussion about diagram initialization
was here -- news://news.eclipse.org/6785c5267d0e8cb50ee48e39d0a@news.ecl ipse.org
..
We also initialize diagrams programmatically in the tests. Class TestWholeClassDiagram
from plugin org.eclipse.uml2.diagram.clazz.tests does such initialization.
Feel free to use it as a hint.

BTW, Josip, you mentioned that you generate UML from code. I wonder from
what kind of code you generate UML, is it Java or another language? Will
it be free or commercial plugin?

Cheers,
Tanya.

> Hi everybody!
>
> I'm building an Eclipse plugin that can be used to generate models
> from code. So far i was able to generate a .uml file describing a
> model. The next step would be to instantiate a class diagram from that
> model. Is there a way to programmatically do that? (now i have to
> right click my uml file and choose 'Instantiate Class Diagram')
>
> Thank you
>
Re: Programmatically generating Class Diagrams [message #623935 is a reply to message #476514] Thu, 04 June 2009 08:35 Go to previous message
Josip Maras is currently offline Josip Maras
Messages: 41
Registered: July 2009
Member
Hi,

Thank you for your response. I'll try the solution you suggested. I've all
ready checked some of the projects from org.eclipse.uml2, but I'm still an
Eclipse plugin noob and i'm still having difficulties understanding how
things are interconnected). Once again - thank you.

The plugin i'm working on is generating models from php, JavaScript and
Html code (based on Conallen's UML extensions) and it will be open source
- i think by the end of summer..

Thank you
Previous Topic:Inline editing of a operations in the classdiagram
Next Topic:Re: UML Class Diagram
Goto Forum:
  


Current Time: Thu Sep 18 07:45:31 GMT 2014

Powered by FUDForum. Page generated in 0.03392 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software