在SWT中需要ComboBoxCellEditor多选功能

在SWT中需要ComboBoxCellEditor多选功能,combobox,eclipse-plugin,swt,eclipse-rcp,jface,Combobox,Eclipse Plugin,Swt,Eclipse Rcp,Jface,我正在使用treeviewer,在这个查看器中使用comboBoxCellEditor。我想在ComboxCellEditor中使用多选择功能。请建议 ArrayList<String> arrList = new ArrayList<String>(Arrays.asList ("WINDOWS_WEB","WINDOWS_NONWEB","ANDROID_NATIVE","ANDROID_WEB")); editor = new ComboBoxViewer

我正在使用treeviewer,在这个查看器中使用comboBoxCellEditor。我想在ComboxCellEditor中使用多选择功能。请建议

  ArrayList<String> arrList = new ArrayList<String>(Arrays.asList  ("WINDOWS_WEB","WINDOWS_NONWEB","ANDROID_NATIVE","ANDROID_WEB"));
  editor = new ComboBoxViewerCellEditor(this.viewer.getTree(), SWT.READ_ONLY);
  editor.setContentProvider(new ArrayContentProvider());
  editor.setInput(arrList);
ArrayList arrList=新的ArrayList(Arrays.asList(“WINDOWS_WEB”、“WINDOWS_非WEB”、“ANDROID_原生”、“ANDROID_WEB”));
editor=new ComboBoxViewerCellEditor(this.viewer.getTree(),SWT.READ_ONLY);
setContentProvider(新的ArrayContentProvider());
编辑器.setInput(arrList);

组合不支持多选。您可以使用带有复选框表的
对话框CellEditor
。您好,谢谢您的建议。实际上,我想使用multiselection选项ComboBoxViewerCellEditor。请找到你的参考图片。我已经说过你不能这样做。ComboBoxViewerCellEditor使用Combo或Cmbo,不支持多选。您必须使用其他工具。您能建议使用DialogCellEditor进行多选的最佳方法吗。