1. LabelProvider:
isLableProperty要return true
或者就extends jface.viewer的LabelProvider

2.在tableViewer上加Cell Modifier
CusCellModifier cellModifier = new CusCellModifier(tableViewer);
        tableViewer.setCellModifier(cellModifier);
        tableViewer.setCellEditors(new CellEditor[] {
            new ComboBoxCellEditor(table, new String[0]) });

        cellModifier.stickCellEditors();

tableViewer.setColumnProperties(getColumnProperties());

3.CusCellModifier

public class CusCellModifier
    implements ICellModifier
{
    public void stickCellEditors()
    {
        comboBoxCellEditor = (ComboBoxCellEditor)getCellEditorForProperty("AAA");
        comboBoxCellEditor.setItems(getItemsForFieldCombo());
        setVisibleItemCount("AAA");
    }
}

相关文章:

  • 2022-01-05
  • 2021-10-03
  • 2022-12-23
  • 2022-01-21
  • 2021-06-12
  • 2021-06-25
  • 2021-04-28
  • 2022-01-03
猜你喜欢
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
  • 2022-01-14
  • 2022-01-13
  • 2022-01-02
  • 2021-05-19
相关资源
相似解决方案