Creating an image from GraphicalEditor in headless enviroment [message #243925] |
Thu, 26 June 2008 09:57 |
Eclipse User |
|
|
|
Originally posted by: toni.rikkola.net
Hi,
I have a GraphicalEditor that creates editable diagrams out of files with
a certain extensions. I know how to create an image out of the editors
content and it works when I run Eclipse with an ui.
But I'm having difficulties when I try to form the same image in headless
mode. The code to generate an editor seems to need an ui.
Right now I'm using something like this to create the editor:
IEditorPart editorPart = IDE.openEditor(workbenchPage, file);
MyEditor editor = (MyEditor) editorPart;
editor.createAndSaveImage();
Is it possible to create an image this way when running headless eclipse
or should I try something different?
Thank you,
Toni Rikkola
|
|
|
Powered by
FUDForum. Page generated in 0.02005 seconds