swt:组合框展开时触发slectionChanged
这种情况仅发生在 Linux 上。我有一个 ComboViewer,其中某些元素会触发一个对话框出现。发生的情况(我对此进行了调试)是当组合框展开时 ISelectionChangedListener.selectionChanged 被触发。这会导致选择查看器的第一个元素并启动对话框。这种情况发生在两页向导中,因此一旦发生这种情况,我会转到上一页,然后返回到查看器的那一页,我在组合框展开时看不到 SelectionChanged 触发。 在 Windows 上,我没有看到这个问题 - SelectionChanged 仅在从组合框中显式选择元素时发生。 有谁知道这是否是一个已知问题并且有解决办法吗?我知道我的情况有些特殊。
谢谢, 亚历克斯
This happens only on Linux. I have a ComboViewer where some elements trigger a dialog to appear. What happens (I debugged this) is when combo box is expanded ISelectionChangedListener.selectionChanged is fired. This causes first element of the viewer to be selected and dialog launched. This occurs in a two page wizard, so once this happens and I go to previous page and then come back to the one with the viewer I don't see selectionChanged firing upon combo box expansion.
On Windows I don't see this problem - selectionChanged only occurs when element is explicitly selected from the combo box.
Does anybody know if this is a known problem and is there fix for it? I understand that my case is somewhat unique.
thanks,
Alex
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对我来说听起来像是一个错误。我知道你可以搜索 Eclipse bug 数据库,这可能是重复的。
Sounds like a bug to me. I understand you can search the Eclipse bug database, this might be a repeat.