Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Saving diagram figures by means of the API
Saving diagram figures by means of the API [message #641602] Fri, 26 November 2010 09:24 Go to next message
Andrea Sindico is currently offline Andrea SindicoFriend
Messages: 266
Registered: November 2010
Senior Member

Hi all,
i am using Acceleo for docs generation and I'd like to add diagrams to the generated docs. My aim is to exploit the Papyrus API (if any) to save diagram's figure in jpg format. Is it possible ? How?

Thank you


Follow me on Twitter @andreasindico

Re: Saving diagram figures by means of the API [message #641607 is a reply to message #641602] Fri, 26 November 2010 09:39 Go to previous messageGo to next message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 134
Registered: July 2009
Senior Member
Hi Andrea,

we rely on the GMF framework to support the "export as image" feature. We do not modify anything for our tool.

I would advise you to look in the GMF forums, there were some questions about this topic. See for example export ecore model to an image

The key element is the org.eclipse.gmf.runtime.diagram.ui.OffscreenEditPartFactory class.

HTH,
Rémi


Re: Saving diagram figures by means of the API [message #641679 is a reply to message #641607] Fri, 26 November 2010 16:07 Go to previous message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 227
Registered: July 2009
Senior Member
Hi, you can also use Gendoc2 which generates document from EMF Models

http://marketplace.eclipse.org/content/gendoc2

A bundle managing GMF will be available soon (next week).

Some documentation is available here :
http://gforge.enseeiht.fr/docman/view.php/102/4043/TPC_GenDo c2_v1.1.0_tutorial.pdf
Gendoc2 > Videos
http://gforge.enseeiht.fr/docman/?group_id=102#

Regards
Tristan FAURE


Le 26/11/2010 10:39, Remi Schnekenburger a écrit :
> Hi Andrea,
>
> we rely on the GMF framework to support the "export as image" feature.
> We do not modify anything for our tool.
>
> I would advise you to look in the GMF forums, there were some
> questions about this topic. See for example
> http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg16809.html
>
> The key element is the
> org.eclipse.gmf.runtime.diagram.ui.OffscreenEditPartFactory class.
>
> HTH,
> Rémi
Previous Topic:java.lang.OutOfMemoryError: PermGen space
Next Topic:Error adding properties element in composite diagram plugin
Goto Forum:
  


Current Time: Tue Nov 25 22:36:21 GMT 2014

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

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