JavaEclipse:如何为表格可编辑单元格添加浏览按钮?
在jface表教程中 我可以在专栏编辑支持部分看到这一点JavaEclipse:如何为表格可编辑单元格添加浏览按钮?,java,eclipse,eclipse-plugin,jface,Java,Eclipse,Eclipse Plugin,Jface,在jface表教程中 我可以在专栏编辑支持部分看到这一点 JFace provides the following default implementations for cell editors: TextCellEditor ColorCellEditor CheckboxCellEditor DialogCellEditor ComboBoxViewerCellEditor 但是应该怎么做才能实现像cell这样的东西呢?它显示特定目录的路径,在这个单元格中有一个小按钮,如图所示
JFace provides the following default implementations for cell editors:
TextCellEditor
ColorCellEditor
CheckboxCellEditor
DialogCellEditor
ComboBoxViewerCellEditor
但是应该怎么做才能实现像cell这样的东西呢?它显示特定目录的路径,在这个单元格中有一个小按钮,如图所示
DialogCellEditor
应该这样做。它通常只显示一个标签,但在选定单元格时会切换到标签加按钮
您可以重写openDialogBox
方法来打开所需的对话框
如果您希望使用标签以外的内容(例如
Text
控件),也可以覆盖createContents
。您在Eclipse中看到过吗?不,我在Eclipse中没有看到类似的内容