CheckBoxCellEditor in Propertsheet [message #300314] |
Tue, 07 March 2006 10:54 |
Eclipse User |
|
|
|
Hello
I'm trying to create a propertyfield containing a CheckBox.
I'm using the CheckBoxCellEditor class but it doesn't work.
I've discovered this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=72351
But according to the status it should be solved.
I'm working with eclipse vers. 3.1.2.
I've tried the following:
public class CheckBoxDesciptor extends PropertyDescriptor {
public CheckBoxDesciptor(Object id, String displayName) {
super(id, displayName);
}
public CellEditor createPropertyEditor(Composite parent) {
CheckboxCellEditor editor = new CheckboxCellEditor(parent);
if (getValidator() != null)
editor.setValidator(getValidator());
return editor;
}
}
Thanx Andy
|
|
|
Powered by
FUDForum. Page generated in 0.03246 seconds