Bug 7389

Summary: PropertyDescriptor's documentation indicates there is a CheckboxPropertyDescriptor
Product: [Eclipse Project] Platform Reporter: Randy Giffen <Randy_Giffen>
Component: UIAssignee: Kevin Haaland <Kevin_Haaland>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: salmasri
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: other   
Whiteboard:

Description Randy Giffen CLA 2002-01-09 10:51:26 EST
From eclipse corner:

According to PropertyDescriptor's documentation, there is a class called
CheckBoxPropertyDescriptor. However, I didn't find it in
org.eclipse.ui.views.properties, and not anywhere else. Is this a bug? I'm
using Eclipse 1.0.

Here is the what PropertyDescriptor says:
 * There are several concrete subclasses provided in this package that cover
 * the most common cases:
 * <ul>
 *   <li><code>TextPropertyDescriptor</code> - edits with a
 *      <code>TextCellEditor</code></li>
 *   <li><code>CheckboxPropertyDescriptor - edits with a
 *      <code>CheckboxCellEditor</code></code></li>
 *   <li><code>ComboBoxPropertyDescriptor - edits with a
 *      <code>ComboBoxCellEditor</code></code></li>
 *   <li><code>ColorPropertyDescriptor - edits with a
 *      <code>ColorCellEditor</code></code></li>
Comment 1 Randy Giffen CLA 2002-01-09 10:58:41 EST
This is a bug in the doc. 
There is no such class. 
The CheckboxCellEditor is not a "real" editor (it does not have a control).
Not sure of the reporter's case but perhaps a two-value combo box will work.
I have fixed the doc.
Comment 2 Liam Morley CLA 2004-12-15 17:44:04 EST
The documentation for IPropertyDescriptor suffers from the same thing. Not sure
if you want to open a separate bug, reopen this one, or just resolve the issue...
Comment 3 Kevin Haaland CLA 2004-12-15 18:03:19 EST
It would be best if you opened a new defect report and attached a patch that 
fixed the problem.