如何自动设置名称属性。 GUI 组件?

发布于 2024-10-01 23:44:37 字数 123 浏览 0 评论 0原文

我需要将 GUI 组件的名称属性设置为它们分配给的变量名称。 你知道有什么 eclipse 插件可以执行此操作吗? 我想过使用 AspectJ,但我不知道如何获取变量名称以分配给相应 GUI 组件的名称属性。

此致。

I need to set the name attribute of my GUI components to the variable name they are assigned to.
Do you know any eclipse plugin which can perform this?
I thought of using AspectJ but I got no idea how to fetch the variable name for assigning to the name attribute of the according GUI component.

Best regards.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

国粹 2024-10-08 23:44:38

我认为,数据绑定正是出于这个原因而设计的。如果您要创建 SWT GUI,则可以使用 JFace 数据绑定。其他 GUI 套件应该存在一些类似的技术,但我不知道它们的名称。

I think, databinding is designed for exactly this reason. If you are creating an SWT GUI, you could use JFace Databinding. Some similar technique should exist for other GUI kits, but I don't know their names.

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