Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 300979

Summary: Cocoa:Combo.setListVisible not working on cocoa
Product: [Eclipse Project] Platform Reporter: Lakshmi P Shanmugam <lshanmug>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact: Lakshmi P Shanmugam <lshanmug>
Severity: normal    
Priority: P3 CC: christoph.zauner, grant_gayed, lshanmug, mseele, patrick
Version: 3.6Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard: stalebug

Description Lakshmi P Shanmugam CLA 2010-01-27 07:59:05 EST
Build id: I20100126-0800

Combo.setListVisible(true) doesn't show the drop-down list. 
For READ_ONLY combo it changes the selection, but after the call to setListVisible() the Combo list items can't be selected.

testcase:

public class Snippet  {
public static void main(String[] args) {
	Display display = new Display();
	Shell shell = new Shell(display);
	shell.setLayout(new GridLayout());
	final Combo combo = new Combo(shell, SWT.READ_ONLY);
	combo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
	combo.setText("Here is some text");
	combo.add("abc");
	combo.add("efg");
	combo.add("iii");
	Button button = new Button(shell, SWT.PUSH);
	button.setText("show");
	button.addSelectionListener(new SelectionAdapter() {
		public void widgetSelected(SelectionEvent e) {
			combo.setListVisible(true);
		}
	});
	shell.pack();
	shell.open();
	while (!shell.isDisposed()) {
		if (!display.readAndDispatch())
			display.sleep();
	}
	display.dispose();
}
}
Comment 1 Patrick Paulin CLA 2011-07-08 13:13:36 EDT
This defect is causing us some pain. Is there any chance a fix could be included in the 3.7.1 release?
Comment 2 Grant Gayed CLA 2011-07-11 10:07:54 EDT
Not sure about 3.7.1, but updating QA contact.
Comment 3 Lakshmi P Shanmugam CLA 2017-07-03 01:07:58 EDT
Bug triaged, visit https://wiki.eclipse.org/SWT/Devel/Triage for more information.
Comment 4 Eclipse Genie CLA 2020-07-17 13:11:00 EDT
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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.

--
The automated Eclipse Genie.