Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 391642 - Introduce a virtual column or an ILabelProvider to display the text of the selected item
Summary: Introduce a virtual column or an ILabelProvider to display the text of the se...
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Nebula (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Marty Jones CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-11 05:20 EDT by Michael Gruebsch CLA
Modified: 2021-07-05 11:41 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gruebsch CLA 2012-10-11 05:20:43 EDT
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.
Comment 1 Laurent CARON CLA 2019-10-02 14:12:09 EDT
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.