更改 emf 编辑器中的字段类型

发布于 2024-07-30 02:51:45 字数 179 浏览 1 评论 0原文

我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

满身野味 2024-08-06 02:51:45

在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文