如何在jface wizrd中动态创建控件
我正在开发 eclipse 插件,我想在循环中动态创建 jface 文本框。 在eclipse插件开发中有没有办法做到这一点? 动态添加文本框后是否需要重绘或其他内容
I am developing eclipse plugin and I want to create jface Text boxes in loop dynamically.
is there a way of doing it in eclipse plugin developement?
do I need to redraw or something after I add Text boxes dynamically
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能需要在新创建的控件的父组合上调用 Composite.layout(),具体取决于您编写代码的方式。
You might need to call Composite.layout() on the parent composite of the freshly created control, depending on how you write the code.
您可以创建所有控件,但使用条件语句来隐藏/显示和更新控件中的信息
you may create all your controls but use a conditional statement to hide/show and update information in the controls