swt:组合框展开时触发slectionChanged

发布于 2024-10-08 08:19:37 字数 340 浏览 0 评论 0原文

这种情况仅发生在 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 技术交流群。

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

发布评论

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

评论(1

泪眸﹌ 2024-10-15 08:19:37

对我来说听起来像是一个错误。我知道你可以搜索 Eclipse bug 数据库,这可能是重复的。

Sounds like a bug to me. I understand you can search the Eclipse bug database, this might be a repeat.

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