eclipse-rcp - eclipse RCP : why ViewerCell and ViewerRow do not have method to get row index?

标签 eclipse-rcp

ViewerCell类有一个方法getColumnIndex,为什么不提供一个返回行索引的方法呢? 这真的让我很困惑。请给我一些解释。

最佳答案

您可以使用table.getItems().indexOf(cell.getElement()) (+/-)。

原因是在虚拟表中找到的。对于这些,您无法轻松找到行索引...

关于eclipse-rcp - eclipse RCP : why ViewerCell and ViewerRow do not have method to get row index?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6561319/

相关文章:

eclipse-rcp - 捆绑 org.junit 包含哪些功能

eclipse-plugin - eclipse 说唱 : How to access deployed application

java - 支持 eclipse e4 中 View 的多个实例

java - Eclipse e4 RCP 部分的空窗口空间被提取到单独插件项目中的片段

java - java 计算 vector 出现次数

java - 以编程方式创建 Eclipse 项目时出现意外行为

java - Eclipse RCP 平台迁移

java - 如何在 Eclipse RCP 3 中使用 dnd 打开新编辑器

eclipse-plugin - 为什么 "Source Code Locations"页面在 eclipse 3.6 (Helios) 上丢失

java - Windows 关机时不同的关机 Hook 行为