我在 org.eclipse.swt.widgets.Table 中创建了一个组合框控件,代码片段如下
...
TableEditor editor = new TableEditor (table_LLSimDataFileInfo);
CCombo combo = new CCombo (table_LLSimDataFileInfo, SWT.NONE);
combo.setText("CCombo");
combo.add("item 1");
combo.add("item 2");
editor.grabHorizontal = true;
editor.setEditor(combo, items[i], 0);
...
如何通过触发某些事件来动态更改表中选定行的组合框列表(例如,仅第 5 行的 item1、item2 等更改为 item4、item5、item7 等)。在我的情况下,事件是在另一个组合框中的选择,其列表不会改变