Skip to main content



      Home
Home » Modeling » Papyrus » How to generate Papyrus diagrams programmatically?
How to generate Papyrus diagrams programmatically? [message #652251] Thu, 03 February 2011 05:44 Go to next message
Eclipse UserFriend
I have some Java code that generates an UML model. I want to generate an initial Papyrus diagram for this UML model. Is there a way to do this in Java?

Furthermore, if I regenerate the UML model, I want the Papyrus diagram to update to the new UML model. Again, is there a way to enforce this from Java code?
Re: How to generate Papyrus diagrams programmatically? [message #653303 is a reply to message #652251] Wed, 09 February 2011 04:37 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

we are currently developing a set of plugins to generate diagrams from a set of templates, bu the code is not present on the current Papyrus SVN.
You can find some example on how to generate a diagram in the plugin there: http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papy rus/branches/0.7.X/extraplugins/org.eclipse.papyrus.diagramq ueryresult.
This code generates diagram and relies on the drag and drop mechanism to generate diagram from a UML model. It acts as you would do if you had to construct the diagram by yourself.

I have no planning yet for the public version of the diagram generation tool. It should however be available in few months.

HTH,
rémi
Re: How to generate Papyrus diagrams programmatically? [message #656401 is a reply to message #653303] Fri, 25 February 2011 07:56 Go to previous messageGo to next message
Eclipse UserFriend
Is the diagram generation tool available now and how to use it. I have used the code mentioned in the post, however, droping an element does not include dropping of child elements inside the droped one. For example, a dropped class does not include methods or attributes inside it. I know this is normal behaviour but is there any way that all the child elements are also shown in the diagram.
Re: How to generate Papyrus diagrams programmatically? [message #663517 is a reply to message #653303] Tue, 05 April 2011 09:25 Go to previous message
Eclipse UserFriend
Please Rémi, could you give more details about how to use this plug in, I generated the .jar and put it in the plugin directory, how can I use it now to display the diagrams?
Previous Topic:How to access the ModelExplorerView
Next Topic:Drop location
Goto Forum:
  


Current Time: Thu Jul 24 18:09:30 EDT 2025

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

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

Back to the top