TableViewer - 如何显示()和项目*和*选择它?
到目前为止,我已经构建了一个编辑器和一个查看器,它们都可以使用相同类型的数据库资源。
我正在尝试实现 JDT 中看到的那种行为:选择文件编辑器会在包资源管理器中选择相同的文件。
我与 TableView 的交互已经停止。 谁能告诉我怎么办 1) 迭代查看器中显示的域项集合 2)然后更改选择,我应该找到我需要的项目。
换句话说,就是一个 RevealAndSelect(Object) 方法。
我们将非常感谢您的经验。
M。
I have thus far built an Editor and a Viewer that both work on the same sort of database resource.
I'm trying to implement the sort of behaviour seen in the JDT: where selecting a files editor selects the same file in the Package Explorer.
I have ground to a halt on interaction with the TableView. Can anyone tell me how I can
1) iterate over the collection of domain-items on display in the viewer
2) then change the selection, should I find the item I need.
So in other words, a revealAndSelect(Object) method.
Your experience would be much appreciated.
M.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
啊。 傻我:解决办法当然是
Ah. Silly me: the solution is of course