Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Creating an image from GraphicalEditor in headless enviroment
Creating an image from GraphicalEditor in headless enviroment [message #243925] Thu, 26 June 2008 09:57
Eclipse UserFriend
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
Previous Topic:[Announce] GEF 3.4.0 is available
Next Topic:Fixed Size Editor
Goto Forum:
  


Current Time: Tue Mar 19 03:20:37 GMT 2024

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

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

Back to the top