featureValue.getFeatureStructure().setFeatureValue(featureValue.getFeature(), newValue);
document.update(featureValue.getFeatureStructure());
}
else if (selection.getFirstElement() instanceof ArrayValue) {
ArrayValue value = (ArrayValue) selection.getFirstElement();
TypeSystem typeSystem = document.getCAS().getTypeSystem();
CreateFeatureStructureDialog createFsDialog =
new CreateFeatureStructureDialog(Display.getCurrent()
.getActiveShell(), typeSystem.getType(CAS.TYPE_NAME_TOP),
typeSystem);
int returnCode = createFsDialog.open();
if (returnCode == IDialogConstants.OK_ID) {
FeatureStructure fs = createFS(createFsDialog.getType(), createFsDialog.getArraySize());
ArrayFS array = (ArrayFS) value.getFeatureStructure();
array.set(value.slot(), fs);
document.update(value.getFeatureStructure());
}
}
}