Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Export diagram(How do I through code export a diagram?)
Export diagram [message #1839239] Thu, 18 March 2021 06:19 Go to next message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 195
Registered: January 2013
Location: Sweden
Senior Member
Hi,

How do I through code export a diagram?
Similar to 'Save as Image file' but through code.

Regards
Patrik
Re: Export diagram [message #1839261 is a reply to message #1839239] Thu, 18 March 2021 12:51 Go to previous messageGo to next message
Pauline Deville is currently offline Pauline DevilleFriend
Messages: 122
Registered: November 2016
Location: Paris Saclay, France
Senior Member
Hello,

This is a GMF feature, it is given by org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUtil.

Here [1] there is example of how to export the diagram programmatically.

HTH,
Pauline

1. https://git.eclipse.org/c/papyrus/org.eclipse.papyrus-model2doc.git/tree/plugins/integration/org.eclipse.papyrus.model2doc.integration.gmf.template2structure/src/org/eclipse/papyrus/model2doc/integration/gmf/template2structure/internal/mapping/GMFDiagramImageUtils.java
Re: Export diagram [message #1839270 is a reply to message #1839261] Thu, 18 March 2021 13:53 Go to previous message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 195
Registered: January 2013
Location: Sweden
Senior Member
Thanks, I'll give it a try
Previous Topic:Export diagram
Next Topic:Show Inherited Associations in a diagram
Goto Forum:
  


Current Time: Wed Apr 24 21:29:44 GMT 2024

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

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

Back to the top