当前位置: 代码迷 >> java >> Eclipse GMF仪表板:生成图编辑器失败(“生成代码时出现问题”)
  详细解决方案

Eclipse GMF仪表板:生成图编辑器失败(“生成代码时出现问题”)

热度:88   发布时间:2023-08-02 10:36:38.0

尝试遵循本教程( )并创建RCP图编辑器。 一切正常,直到最后一步“ Generate diagram editor”失败并显示以下错误消息:

“可执行模板”遇到了问题。

生成代码时出现问题

...细节显示了一堆:

在生成代码布尔期望值(是:org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl $ 1)时发生异常(期望值是org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl $ 1!)。 :在CodeStyle的第18行中出现异常(生成布尔值的期望值(在org.eclipse.ocl.ecore中)。在CodeStyle的内部.OCLStandardLibraryImpl $ 1)!:行83中发生异常(在CodeStyle的第18行是布尔值(原为org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl $ 1)!:在CodeStyle中是) eclipse.ocl.ecore.internal.OCLStandardLibraryImpl $ 1)!:在CodeStyle中,行18异常(预期为布尔值(原为:org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl $ 1)!:在CodeStyle中,行83)同时生成代码布尔值预期的(是:org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl $ 1)!:在CodeStyle中,行83异常(布尔值的预期(是:org.ec lipse.ocl.ecore.internal.OCLStandardLibraryImpl $ 1)!::在CodeStyle中,第89行),同时生成预期的布尔值代码(以前是:org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl $ 1)!:在CodeStyle中,行89

我是eclipse和GMF的新手,不知道我可能忽略和错误配置的内容。 (我将当前的Mars-Eclipse与通过“帮助”>“安装新软件”安装的GMF-Stuff一起使用)。可能是什么问题?

在genmodel中,将合规性设置为6.0。

更多信息

  相关解决方案