oldVal = UIUtil.getFirstItem(values);
}
if (UIUtil.getDisplayText(oldVal).length() == 0) {
if (UIUtil.getDisplayText(newVal).length() > 0) {
EntityData newValEntityData = convertToEntityData(newVal);
addPropertyValue(subj, getProperty().getName(), getProperty().getValueType(),
newValEntityData, oldVal, getAddValueOperationDescription(subj, newValEntityData));
}
}
else if (UIUtil.getDisplayText(newVal).length() == 0) {
EntityData oldValEntityData = convertToEntityData(oldVal);
deletePropertyValue(subj, getProperty().getName(), getProperty().getValueType(),
oldValEntityData, oldVal, getDeleteValueOperationDescription());
}
else {
EntityData oldValEntityData = convertToEntityData(oldVal);
EntityData newValEntityData = convertToEntityData(newVal);
replacePropertyValue(subj, getProperty().getName(), getProperty().getValueType(),
oldValEntityData, newValEntityData, oldVal,
getReplaceValueOperationDescription(subj,
oldValEntityData, newValEntityData));