Community
Participate
Working Groups
20011204: CheckboxTableViewer has no more columns upon creation. You have to create the first column as well. I encountered the same problem in TemplatePreferencePage, because I used the same code as in VMPreferencePage.
Oops, I meant to send it to jdt.debug
Without this fix, you cannot add installed JREs Fixed.
Please verify.
verified.
The TableColumn was removed from the CheckBoxTableViewer constructor because SWT does not require it if there's a single column and the header is not visible. This was made as a workaround for an SWT/OS bug where blank items would sometimes appear (you used to see this a lot in the hierarchy view). We may have to add this back, since it could be seen as a breaking change even though the spec for the constructor does not say that it creates a TableColumn (it does sort of suggest it though). In general, rather than tweaking the control which the viewer creates, you should create your own control from scratch and pass it to the viewer. The constructors which create it for you are intended just as a convenience for the cases they describe, and assume they won't be tweaked further.
See SWT bug 6361 and bug 6472.
*** Bug 6597 has been marked as a duplicate of this bug. ***