Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Print GMF diagram
Print GMF diagram [message #224093] Thu, 02 April 2009 07:25 Go to next message
Eclipse UserFriend
Originally posted by: taus.proceedinnovation.com

Hallo,

I want to print a specific diagram in jpg format to a file without going
through any user dialogs. The name of the jpg file is known, the diagram
to be printed is open.How can I perform the printing just via program code?

Thanks in advance
Walter
Re: Print GMF diagram [message #224117 is a reply to message #224093] Thu, 02 April 2009 07:43 Go to previous messageGo to next message
Eclipse UserFriend
Hello Walter,

See org.eclipse.gmf.runtime.diagram.ui.printing.render.providers .DiagramWithPrintGlobalActionHandler

-----------------
Alex Shatalin
Re: Print GMF diagram [message #224377 is a reply to message #224117] Mon, 06 April 2009 03:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: taus.proceedinnovation.com

Alex Shatalin schrieb:
> Hello Walter,
>
> See
> org.eclipse.gmf.runtime.diagram.ui.printing.render.providers .DiagramWithPrintGlobalActionHandler
>
>
> -----------------
> Alex Shatalin
>
>
Hallo Alex,

thanks for the hint. However, when I look into this class I only see a
protected doPrint method which I cannot access. So what exatly was your
idea of using this class? Do I miss something?

Thanks
Walter
Re: Print GMF diagram [message #224384 is a reply to message #224377] Mon, 06 April 2009 06:57 Go to previous message
Eclipse UserFriend
Hello Walter,

My ideda was to review this class plus EnhancedPrintActionHelper one used
from there and either use these classes or copy coresponding code from there.

-----------------
Alex Shatalin
Previous Topic:How to implement drop-down menu for editing labels in a diagram ?
Next Topic:Diagram image file
Goto Forum:
  


Current Time: Thu May 22 19:49:52 EDT 2025

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

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

Back to the top