if (value.getFeature().getRange().getName().equals(CAS.TYPE_NAME_BOOLEAN)) {
editor = new CheckboxCellEditor(viewer.getTree(), SWT.CHECK);
}
else {
editor = new TextCellEditor(viewer.getTree());
editor.setValidator(CellEditorValidatorFacotory.createValidator(Primitives
.getPrimitiveClass(value.getFeatureStructure().getCAS().getTypeSystem(), value.getFeature())));
}
return editor;
}
else {
return null;
}
} else if (element instanceof ArrayValue) {
ArrayValue arrayValue = (ArrayValue) element;
FeatureStructure arrayFS = arrayValue.getFeatureStructure();
CellEditor editor;
if (arrayFS instanceof BooleanArrayFS) {
editor = new CheckboxCellEditor(viewer.getTree(), SWT.CHECK);
}
else {
editor = new TextCellEditor(viewer.getTree());
if (arrayFS instanceof ByteArrayFS) {
editor.setValidator(CellEditorValidatorFacotory.createValidator(Byte.class));
}
else if (arrayFS instanceof ShortArrayFS) {