| Summary: | SaveAsImage(PNG,PDF,SVG format) doesn't work when mulitple | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] GMF-Runtime | Reporter: | Liangfei Su <suliangfei> | ||||||
| Component: | General | Assignee: | Project Inbox <gmf-runtime-inbox> | ||||||
| Status: | NEW --- | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | charleszq, pierre-charles.david, suliangfei, Unripe, webmaster | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Liangfei Su
Created attachment 189922 [details]
screenshot
Created attachment 189923 [details]
the log
while trying on Eclipse 3.7 with GMF 1.4.1, png and svg work fine, but PDF will report the following exception: java.lang.ClassCastException: org.eclipse.gmf.runtime.draw2d.ui.render.internal.image.ImageRenderedImage cannot be cast to org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.svg.SVGImage at org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUtil.saveToOutputStream(CopyToImageUtil.java:529) at org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUtil.saveToFile(CopyToImageUtil.java:513) at org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUtil.copyToImage(CopyToImageUtil.java:378) at org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUtil.copyToImage(CopyToImageUtil.java:305) at org.eclipse.gmf.runtime.diagram.ui.render.actions.CopyToImageAction$1.run(CopyToImageAction.java:260) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372) We are having the same problem here.
> while trying on Eclipse 3.7 with GMF 1.4.1, png and svg work fine, but PDF will
> report the following exception:
>
> java.lang.ClassCastException:
> org.eclipse.gmf.runtime.draw2d.ui.render.internal.image.ImageRenderedImage
> cannot be cast to
> org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.svg.SVGImage
> at
> org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUtil.saveToOutputStream(CopyToImageUtil.java:529)
> at
> org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUtil.saveToFile(CopyToImageUtil.java:513)
> at
> org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUtil.copyToImage(CopyToImageUtil.java:378)
> at
> org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUtil.copyToImage(CopyToImageUtil.java:305)
> at
> org.eclipse.gmf.runtime.diagram.ui.render.actions.CopyToImageAction$1.run(CopyToImageAction.java:260)
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
*** Bug 361888 has been marked as a duplicate of this bug. *** Hello I currently also face this problem. Are there any news on this bug? (In reply to Svenja Wendler from comment #6) > Hello I currently also face this problem. Are there any news on this bug? Hi. I'm in the process of updating the Batik version used by GMF Runtime (for completely different reasons), so I'll keep this scenario in mind and try to have a look. I can't make any guarantee though, as we have limited resources to put into GMF and a large part has already been consumed by the Batik upgrade. |