How to generate GEF images for project documentation [message #249501] |
Mon, 06 July 2009 07:17  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02269 seconds