diff --git a/org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/annotation/valueprovider/.ratings b/org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/annotation/valueprovider/.ratings index 92ed26a1cb5f7e18b0bb012c16bd9eff13ec08ba..7edd91df7111b56e752bbc92c2c83eaacc93393f 100644 --- a/org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/annotation/valueprovider/.ratings +++ b/org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/annotation/valueprovider/.ratings @@ -1,6 +1,6 @@ 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 diff --git a/org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/annotation/valueprovider/EStructuralFeatureValueProviderBase.java b/org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/annotation/valueprovider/EStructuralFeatureValueProviderBase.java index aedd683a94bb0c0e28e0819dc1101f3121e5be43..6f5a0c93eb2bc4b1aa5ba4dd7f1c692fcd31ec6e 100644 --- a/org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/annotation/valueprovider/EStructuralFeatureValueProviderBase.java +++ b/org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/annotation/valueprovider/EStructuralFeatureValueProviderBase.java @@ -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.");