[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: export ecore model to an image

Hello Sebastian,

yes you can do so.
GMF provides all you need.

First of all, create a DiagramEditPart-instance with OffScreenEditPartFactory and second use the CopyToImageUtil to save the diagram to a file.
All works without ever opening an editor.
If you need further help, let me know.


Regards, Thomas


Sebastian schrieb:
Hello!

I'm developing an application, that handles ecore models and diagrams. One part should be, that diagrams are exported to image files automatically by the application. There should be no diagram editor visible to the user. So the solution with the context menu doesn't work.
I have a model and a diagram file and what I want to get is an image file.
Is there a possibility to use parts of gmf and emft to do this?



Sebastian