简体   繁体   English

在验证和转换Ecore模型时检测到问题。 名称在图中的模型对象格式不正确

[英]problems were detected while vaidating & converting Ecore models. The names are not well formed for model objects in diagram

I tried to install the EMF plugin inside eclipse but some of the default Ecore diagram and EMF Generator Model projects were not available. 我试图在eclipse中安装EMF插件,但是一些默认的Ecore图和EMF Generator Model项目不可用。 So downloaded a different eclipse installer for modelling ie Eclipse Modeling Tools (275 MB ) and found all the relevant model related & diagram based project now. 因此,下载了另一个用于建模的Eclipse安装程序,即Eclipse Modeling Tools(275 MB),现在找到了所有与模型相关且基于图的项目。 I have followed the same tutorial http://www.vogella.com/articles/EclipseEMF/article.html . 我遵循了相同的教程http://www.vogella.com/articles/EclipseEMF/article.html I was able to create the webpage model diagram & then the webpage.ecore file but then the webpage.genmodel the model generator file was giving errors like the ” names used in the diagrams for the objects are not well formed ” in webpage model diagram . 我能够先创建网页模型图,然后再创建webpage.ecore文件,但随后模型生成器文件webpage.genmodel出现错误,例如网页模型图中的“ 对象图中使用的名称格式不正确 ”。 I googled for these errors which according to me mean that the names are not proper according to the given language for modeling constraints & no resolution to these errors were found. 我搜索了这些错误,对我而言,这意味着根据给定的建模约束语言,名称不正确,并且未找到解决这些错误的方法。 then tried to ignore the errors and tried Generating the domain classes for java code, java code is generated but then the other following modules Create your model & Edit your model under Run your plugins category does not work further due to the previous errors on this link http://www.vogella.com/articles/EclipseEMF/article.html . 然后尝试忽略错误,并尝试为Java代码生成域类,生成了Java代码,但随后的其他以下模块创建模型并在“运行插件”类别下编辑模型由于该链接上的先前错误而无法再使用http://www.vogella.com/articles/EclipseEMF/article.html Please help me debug these errors 请帮我调试这些错误

check if Name property is not null , you need to fill it 检查Name属性是否不为null,您需要填写它

http://emftools.tuxfamily.org/wiki/doku.php?id=emfvb:quickstart http://emftools.tuxfamily.org/wiki/doku.php?id=emfvb:quickstart

You need to set the name of Epackage and also prefix and URI 您需要设置Epackage的名称以及前缀和URI

[ [ 在此处输入图片说明 1 1个

[ [ 在此处输入图片说明 2 2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM