1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
CellEditor[] editors = new CellEditor[2];
editors[0] = new ComboBoxCellEditor(table, OSScopeRange.INSTANCES,
SWT.READ_ONLY);
editors[1] = new ComboBoxCellEditor(table, OSNameRange.INSTANCES,
SWT.READ_ONLY);
((ComboBoxCellEditor) editors[0]).addListener(new ICellEditorListener() {
public void cancelEditor() {
}
public void applyEditorValue() {
// code pour selectionner valeur dans combo2 (editors[1]) ici ??
}
public void editorValueChanged(boolean oldValidState,
boolean newValidState) {
}
}); |
Partager