如何自动设置名称属性。 GUI 组件?
我需要将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为,数据绑定正是出于这个原因而设计的。如果您要创建 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.