1
|
package eu.etaxonomy.taxeditor.propertysheet;
|
2
|
|
3
|
import org.eclipse.jface.viewers.CellEditor;
|
4
|
import org.eclipse.swt.widgets.Composite;
|
5
|
import org.eclipse.ui.views.properties.PropertyDescriptor;
|
6
|
|
7
|
public class CheckboxPropertyDescriptor extends PropertyDescriptor {
|
8
|
|
9
|
public CheckboxPropertyDescriptor(Object id, String displayName) {
|
10
|
super(id, displayName);
|
11
|
}
|
12
|
|
13
|
/* (non-Javadoc)
|
14
|
* @see
|
15
|
org.eclipse.ui.views.properties.IPropertyDescriptor#createPropertyEditor(org.eclipse.swt.widgets.Composite)
|
16
|
*/
|
17
|
public CellEditor createPropertyEditor(Composite parent) {
|
18
|
CellEditor editor = new CheckboxCellEditor(parent);
|
19
|
if (getValidator() != null) {
|
20
|
editor.setValidator(getValidator());
|
21
|
}
|
22
|
return editor;
|
23
|
}
|
24
|
}
|