更改 emf 编辑器中的字段类型
我使用 EMF 让用户使用生成的编辑器创建模型。 在编辑器属性中,在模型的属性之一中,我希望用户单击“...”按钮而不是使用字符串值。 在他单击“...”按钮后,我将打开一个为他创建的对话框,供他从列表中进行选择。 如何更改属性以显示“...”而不仅仅是字符串。 是在ecore文件中完成的吗?
我愿意。
I'm using EMF to let the user create a model using a generated editor.
In the editor properties, in one of the properties of the model I want the user to click on "..." button instead of using string value. after he clicks the "..." button i will open a dialog that I created for him to pick from a list.
How do I change the property to show "..." instead of just being a string. Is it done in the ecore file?
Ido.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 EMF 中,您可以在 .genmodel、编辑和/或编辑器“plugin.properties”文件中或(对于复杂和不寻常的事情)通过更改生成的代码来更改生成的模型编辑器的“外观和感觉”。
如果您编辑生成的代码,请小心删除“@ generated”标记...否则您的更改将在下次从模型重新生成代码时消失!
在这种情况下,我认为您可能只需要更改一些插件属性字符串。
In EMF, you can change the "look and feel" of your generated model editor in the .genmodel, in the Edit and / or Editor "plugin.properties" files or (for complicated and unusual things) by changing the generated code.
If you edit the generated code be careful to delete the "@generated" markers ... or your changes will DISAPPEAR next time you regenerate the code from your model!
In this case, I think you probably just need to change some plugin property strings.