这个问题是指运行在Ubuntu12.04上的Eclipse开普勒实例。我有一个用例图,我需要将它作为图像文件包含在文档中。我右键单击.di文件,选择导出所有图表.,然后选择PDF作为文件格式。作为回报,我得到了一个错误窗口,其内容如下:
ExportAll报告 原因: 某些测试失败的一代
在错误日志中,将提交一个异常:
消息: 资源platform:/resource/EMS-iGUESS_Components/models/UseCasesNew.notation中图NewDiagram生成过程中的错误 异常堆栈跟踪: org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.graphics.GraphicsToGraphics2DAdaptor.createStroke(GraphicsToGraphics2DAdaptor.java:1544),org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.graphics.GraphicsToGraphics2DAdaptor.drawPolygon(GraphicsToGraphics2DAdaptor.java:633),org.eclipse.draw2d.Graphics.drawPolygon(Graphics.java:293),org.eclipse.gmf,java.awt.BasicStroke.(BasicStroke.java:181)。runtime.draw2d.ui.internal.graphics.ScaledGraphics.drawPolygon(ScaledGraphics.java:356) at org.eclipse.papyrus.uml.diagram.usecase.draw2d.StickMan.outlineShape(StickMan.java:62) at org.eclipse.papyrus.uml.diagram.usecase.draw2d.ShadowShape.outlineShape(ShadowShape.java:134) at org.eclipse.draw2d.Shape.paintOutline(Shape.java:175) at org.eclipse.draw2d.Shape.paintFigure(Shape.java:147) at org。eclipse.papyrus.uml.diagram.usecase.draw2d.ShadowShape.paint(ShadowShape.java:109) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1167) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1202) at org.eclipse.draw2d.Figure.paint(Figure.java:1117) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1167) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1202)在org.eclipse.draw2d.Figure.paint(Figure.java:1117) at org.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramGenerator.paintFigure(DiagramGenerator.java:373) at org.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramGenerator.renderToGraphics(DiagramGenerator.java:226) at org.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramGenerator.createSWTImageDescriptorForParts(DiagramGenerator.java:721) at org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUtil.copyToImage(CopyToImageUtil.java:376) at org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUtil.copyToImage(CopyToImageUtil.java:305) at org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUtil.copyToImage(CopyToImageUtil.java:123) at org.eclipse.papyrus.infra.export.ExportAllDiagrams.exportDiagram(ExportAllDiagrams.java:357) at org.eclipse.papyrus.infra.export.ExportAllDiagrams.access$3( org.eclipse.papyrus.infra.export.ExportAllDiagrams$6.run(ExportAllDiagrams.java:336) at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:164) at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:158) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) atorg.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3717) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3366) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)在org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse。ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)在java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) at org.eclipse.equinoxorg.eclipse.equinox.launcher.Main.run(Main.java:1450) at org.eclipse.equinox.launcher.Main.main(Main.java:1426)的.launcher.Main.basicRun(Main.java:591) 会话数据: eclipse.buildId=4.3.2.M20140221-1700 java.version=1.6.0_26 java.vendor=Sun微系统公司BootLoader 常量: OS=linux、ARCH=x86_64、WS=gtk、NL=en_GB框架 论据:-product org.eclipse.epp.package.standard.product 命令行参数:-os linux -ws -arch -arch x86_64 -product org.eclipse.epp.package.standard.product
这里怎么了?如何将图表导出为图像文件?谢谢。
发布于 2014-04-01 04:42:47
我发现有些元素(如Actors、ReceiveSignal)不接受线宽字段的负值。在这些元素上,您可以在属性/外观/线宽字段中将"-1“替换为"1”。
希望能帮上忙..。
发布于 2015-01-20 14:53:14
将其导出为SVG文件。您可以在浏览器中查看它们,并在以后将它们转换为其他格式。
https://stackoverflow.com/questions/22635307
复制相似问题