Skip to content
Snippets Groups Projects
Commit 543d3ead authored by Simon Barner's avatar Simon Barner
Browse files

Fix changing values from source element parameter editor (only setting the initial value worked).

refs 2950,2562
parent 38d6c087
No related branches found
No related tags found
No related merge requests found
AnnotationInstSpec.java 3b4dc57e844b75a549ef68acd327613a259dad80 RED
DerivedAnnotationValueProviderBase.java ae12ab7e386cc53a6a66dfc331ba43549b864b93 YELLOW
EStructuralFeatureDescriptor.java b4093c8997472d0ab63a69c1d025d9aeb9b4f294 GREEN
EStructuralFeatureValueProviderBase.java 5634d4f0fea682bddb5a93234963278784a06691 YELLOW
EStructuralFeatureValueProviderBase.java eb50feb4f0d1dd4b1dea9c489b84d1e9d240460f YELLOW
IAnnotationValueProvider.java 2d7b8ceff3ed83e7b5d2973bfa0632b9ff501d92 YELLOW
ValueProviderBase.java 3138017b6c19933551b5e46033107df5ad954352 YELLOW
ValueProviderBase.java e577cc1cfffbad8ef47681f2dcdb2622f6be209e YELLOW
......@@ -151,7 +151,12 @@ public abstract class EStructuralFeatureValueProviderBase<T extends IAnnotatedSp
if(structuralFeature instanceof EAttribute) {
EFactory eFactory = getEFactory(structuralFeature);
EDataType eAttributeType = ((EAttribute)structuralFeature).getEAttributeType();
specification.eSet(structuralFeature, eFactory.createFromString(eAttributeType, value));
try {
specification.eSet(structuralFeature,
eFactory.createFromString(eAttributeType, value));
} catch(Exception e) {
specification.eSet(structuralFeature, null);
}
} else {
throw new Exception(
"setAnnotationValueFromString() is only availabe for EAttributes. Use setAnnotationValue(U value, T specification) instead.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment