Community
Participate
Working Groups
At the moment one has to call TableColumn.setDisplayColumnIndex(int) to select one of the table columns. The LabelProvider of the column is used to get the text which is displayed in the text field above the drop down. In some cases one column is not enough to identify an item. For that reason a combination of multiple columns must be used. Of course one can define a single column which combines the data from these multiple columns. However, to use this combined column it has to be displayed in the table too, making the table columns redundant, that is showing the same information twice. To overcome this it would be good, to define a virtual column which is used for the text summarization but is not displayed in the table. Alternatively (and preferred) what about a method setDisplayColumnLabelProvider(ILabelProvider) instead of setDisplayColumnIndex(int)? The parameter may be tested for being an instance of IFontProvider and/or IColorProvider as well. By this way you get all informations needed.
Michael, TableCombo is structured around the "column index". It's pretty hard to introduce a virtual table and/or a label provider without breaking the component. If this bug is still relevant, feel free to reopen it.