Bug 6582 - VMPreferencePage - CheckboxTableViewer has no columns anymore
Summary: VMPreferencePage - CheckboxTableViewer has no columns anymore
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P1 blocker (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 6597 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-12-05 07:17 EST by Claude Knaus CLA
Modified: 2001-12-06 11:15 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claude Knaus CLA 2001-12-05 07:17:18 EST
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.
Comment 1 Claude Knaus CLA 2001-12-05 07:18:08 EST
Oops, I meant to send it to jdt.debug
Comment 2 Darin Swanson CLA 2001-12-05 10:54:25 EST
Without this fix, you cannot add installed JREs
Fixed.
Comment 3 Darin Swanson CLA 2001-12-05 10:54:37 EST
Please verify.
Comment 4 Claude Knaus CLA 2001-12-05 11:31:01 EST
verified.
Comment 5 Nick Edgar CLA 2001-12-05 14:02:15 EST
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.
Comment 6 Nick Edgar CLA 2001-12-05 14:28:40 EST
See SWT bug 6361 and bug 6472.
Comment 7 Darin Swanson CLA 2001-12-06 11:15:55 EST
*** Bug 6597 has been marked as a duplicate of this bug. ***