CheckBoxCellEditor in property field [message #301053] |
Wed, 22 March 2006 11:53 |
Eclipse User |
|
|
|
Hello
I'm trying to create a property field in the property sheet.
This property field should contain a CheckBox.
I'm using the CheckBoxCellEditor class but I can't get it to work.
I've tried the following, which is analog to the TextPropertyDescriptor:
Does anyone have any idea what my mistake is?
Thanx andy
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;
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.02190 seconds