Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:17 Go to next message
Andreas Herz is currently offline Andreas HerzFriend
Messages: 196
Registered: July 2009
Senior Member
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 17:07 Go to previous message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
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: Thu Apr 25 20:11:33 GMT 2024

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

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

Back to the top