Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/396.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JavaEclipse:如何为表格可编辑单元格添加浏览按钮?_Java_Eclipse_Eclipse Plugin_Jface - Fatal编程技术网

JavaEclipse:如何为表格可编辑单元格添加浏览按钮?

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表教程中

我可以在专栏编辑支持部分看到这一点

JFace provides the following default implementations for cell editors:

TextCellEditor

ColorCellEditor

CheckboxCellEditor

DialogCellEditor

ComboBoxViewerCellEditor
但是应该怎么做才能实现像cell这样的东西呢?它显示特定目录的路径,在这个单元格中有一个小按钮,如图所示


DialogCellEditor
应该这样做。它通常只显示一个标签,但在选定单元格时会切换到标签加按钮

您可以重写
openDialogBox
方法来打开所需的对话框


如果您希望使用标签以外的内容(例如
Text
控件),也可以覆盖
createContents

您在Eclipse中看到过吗?不,我在Eclipse中没有看到类似的内容