Bug 4510 - [CCombo] CCombo should allow images for items (1FUUQS2)
Summary: [CCombo] CCombo should allow images for items (1FUUQS2)
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: All Windows NT
: P5 enhancement with 16 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks: 21708
  Show dependency tree
 
Reported: 2001-10-11 14:18 EDT by Dejan Glozic CLA
Modified: 2019-11-27 07:20 EST (History)
20 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dejan Glozic CLA 2001-10-11 14:18:04 EDT
At the moment, ComboBoxCellEditor uses SWT List widget for the popup. This precludes users to
use images in addition to text for combo box items.

The desktop has a need for a combo box cell editor that can accept an image in front of the text item.
Most of the current ComboBoxCellEditor can be preserved, but with usage of Tree or Table instead
of List for the actual popup. 

Since this is not the most common case, I recommend ComboBoxCellEditor to be left as-is,
and a new one (probably a subclass) to be added (something like ImageComboBoxCellEditor).
This one would accept not only presentation text and value for an item, but also an optional 
presentation image.

NOTES:
EG (5/15/00 9:30:27 AM)
	We are using the SWT pop-up list, there is no SWT support for combo boxes as editor
	overlays. 
	I agree with DG that no change is required for the beta.
	Moving to SWT.

	McQ (2/1/01 5:34:28 PM) -
		Could be implemented in a custom widget.
Comment 1 DJ Houghton CLA 2001-10-29 16:18:16 EST
PRODUCT VERSION:
121

Comment 2 Nick Edgar CLA 2002-07-25 10:59:49 EDT
ComboBoxCellEditor uses CCombo, which is implemented using a List.
If CCombo used Table instead, it could support icons.
Changing title to reflect that this requires improvements to CCombo.
Comment 3 Mike Wilson CLA 2002-08-06 14:22:10 EDT
This is not likely to happen unless someone on the UI team indicates that this 
is an important enhancement.
Comment 4 Gary Gregory CLA 2005-10-05 19:09:17 EDT
I'd like to use icons in a CCombo too... Now using E 3.1.1.
Comment 5 Markus Keller CLA 2006-01-18 06:15:07 EST
See also bug 93809 (requests the same for Combo).
Comment 6 Adam Neal CLA 2009-10-28 13:36:01 EDT
Our tooling has a requirement to use a drop down combo box, and we must have associated icons with the combo items (plus tooltips).  Therefore this feature is important to us.

Is it possible to prioritize this?
Comment 7 Thomas Schindl CLA 2009-10-30 04:04:18 EDT
Nebula will get such a widget in the next week. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=291432
Comment 8 Markus Keller CLA 2009-12-14 12:02:53 EST
Back to inbox.
Comment 9 Anil Kap CLA 2014-03-25 06:32:48 EDT
I am trying to add images to combo items, But comboViewer is not supporting the images in getImage() method in LabelProvider.
Comment 10 Lars Vogel CLA 2019-11-27 07:20:08 EST
This bug hasn't had any activity in quite some time. Maybe the problem got
resolved, was a duplicate of something else, or became less pressing for some
reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it.
The information can be, for example, that the problem still occurs, that you
still want the feature, that more information is needed, or that the bug is
(for whatever reason) no longer relevant.

If the bug is still relevant, please remove the stalebug whiteboard tag.