Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Enriched Draw2d Printing?
Enriched Draw2d Printing? [message #525538] Tue, 06 April 2010 19:35 Go to next message
Steven Punte is currently offline Steven PunteFriend
Messages: 34
Registered: July 2009
I've developed an Eclipse view that utilizes draw2d. I need to add printing support. I've looked at the PrintExample.jave in cvs: it is pretty basic.

I'd like to leverage as much as possible from GEF and GMF ideally providing "Page Setup", Print Preview", page breaks, etc... (i.e., all the nice user friendly stuff).

Can someone highly familiar with this technology suggest how I would best approach this task?

Thanks in advance.

Steve Punte
Re: Enriched Draw2d Printing? [message #525673 is a reply to message #525538] Wed, 07 April 2010 12:52 Go to previous message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
In GMF printing has been implimented....

You can study the code from GMF and try to rewrite the same for "Page Setup", Print Preview", page breaks, etc

GEF also has these functionalities then again you have to dig....

for start see org.eclipse.gef.ui.actions.PrintAction and
org.eclipse.gmf.runtime.diagram.ui.printing.actions.PrintPre viewAction

why, mr. Anderson, why, why do you persist?
Because I Choose To.
Previous Topic:GEF documentation and examples is lacking - we need a GEF WIKI!
Next Topic:GEF shape Example file doesnt remove from editor on file deletion
Goto Forum:

Current Time: Fri Apr 27 02:45:43 GMT 2018

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

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