Skip to main content



      Home
Home » Eclipse Projects » GEF » How to generate GEF images for project documentation
How to generate GEF images for project documentation [message #249501] Mon, 06 July 2009 07:17 Go to next message
Eclipse UserFriend
Hi,

I have create a RAD tool for DB applications called jACOB.
Now I will create a plugin for documentation generation.
Unfortunately I'm unable to create images from my
GEF UI-Editor without to open the GEF editor.

A jACOB project did have at least 20-30 UI screens. I think
it is a "no go" to open 20 editors, create an image and
close them again.

Is there a another solution available to create "screenshots"?

Another solution is to transform my XML UI represenation to SVG.
but in this case I did have double code. One for the editor and one
for the SVG rendering.


Greetings

Andreas
Re: How to generate GEF images for project documentation [message #249562 is a reply to message #249501] Thu, 09 July 2009 13:07 Go to previous message
Eclipse UserFriend
Hi,

You don't need to open an editor, but you'll have to create graphical
viewer and give it an off-screen control, such that your diagrams/docs
aren't painted on the control (but only on the image) You'll have to also
set the editpart factory, and then model contents. Contents edit part of
the viewer should have the figure that you need to paint on an image.
GMF has image export functionality, which I recommend you to take a look
at.
OffscreenEditPartFactory#createDiagramEditPart(Diagram, Shell,
PreferencesHint)
(the class is from GMF)

Cheers,
Alex
Previous Topic:dragging issue on Draw2D
Next Topic:Distorted graphics while scrolling
Goto Forum:
  


Current Time: Wed Mar 19 04:57:21 EDT 2025

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

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

Back to the top