Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369399

Summary: check if Graphiti supports export of graphics for documentation
Product: [Modeling] eTrice Reporter: Thomas Schuetz <ts>
Component: GeneratorsAssignee: Project Inbox <etrice.generators-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: hrr
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: 0.2.0M2

Description Thomas Schuetz CLA 2012-01-23 10:18:49 EST

    
Comment 1 Henrik Rentz-Reichert CLA 2012-01-26 10:10:07 EST
Hi,

is it possible to create an image (any format) from a diagram file without opening an editor?

Thanks,
Henrik

Answer:

Henrik,

sorry, currently that is not possible. The coding doing the export (UIService.startSaveAsImageDialog) expects a GraphicalViewer instance.

Michael
Comment 2 Henrik Rentz-Reichert CLA 2012-03-30 13:26:30 EDT
Added a possibility to manually trigger diagram export from the UI.
This opens all editors, saves and closes again (if not open before).

The solution is not so nice and isn't working headlessly. But for the time being it's alright.

Committed with
ae03bd89d5425c39a3d5b9f2a8d017a860362c65

(the path and names for the images is picked such that it matches with the documentation generator)
Comment 3 Henrik Rentz-Reichert CLA 2012-05-21 11:11:33 EDT
closing bugs contained in M2