This question is about how I could add a multi-selection ComboBoxCellEditor
, or a multiple BooleanCellEditor
to a cell in a TableViewer
. The main aim is to have a multi selection in a cell.
I am using the snippets at http://wiki.eclipse.org/index.php/JFaceSnippets and http://www.eclipse.org/swt/snippets/ , and I now have a fairly good Table using TableView
with all editing supports, label providers, content providers. Inside the cells I now have a TextCellEditor
or a ComboBoxCellEditor
.
The thing is: I want a multiple selection, and I don't know how.
The code of org.eclipse.nebula.widgets.nattable.edit.editor.ComboBoxCellEditor
seems to have multipleselection, but I am having always a java.lang.NoClassDefFoundError
while trying to use the external Nebula classes
The JFace snippet Snippet061FakedNativeCellEditor
provides me with only one checkbox, and adapting this code to my code is difficult.
Many thanks.
You're not adding those nebula JARs/Projects to your buildpath/runtime.
You'll have to extend your own CellEditor
. Inside it, you can create basically anything you want, as long as it's a Control
. I'm pretty sure you can sneak more than one widget in the createControl
protected method of CellEditor
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.