|
Re: Programmatically create but not display diagram [message #1719156 is a reply to message #1718897] |
Tue, 05 January 2016 16:50 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hi Raul,
The Papyrus "Export all diagrams" action works even when the Papyrus editor is closed, so it is probably what you are looking for for the Papyrus Diagram to PNG conversion (This class can be invoked programmatically)
Then you need to be able to generate Papyrus Diagrams, but that's more complex. The topic you have referenced should contain everything you need. You can load a Papyrus DiagramEditPart without actually opening the editor, using the GMF OffscreenEditPartFactory to load the Papyrus diagram
Papyrus doesn't provide automatic layout: they are provided natively by e.g. GEF/Zest or GMF, or via external projects such as ELK (Eclipse Layout Kernel)
HTH,
Camille
Camille Letavernier
|
|
|
Powered by
FUDForum. Page generated in 0.04066 seconds