Community
Participate
Working Groups
The Xtext editor should show an error if you assign a value to a not changeable reference. If changeable is false, the ecore model won't get a setter for that feature which leads to a runtime error in the generated editor. Reproduce: 1. Create a new Xtext-Project from existing ecore 2. Set a class with a not changeable feature in the ecore 3. Assgin a value to that feature in your grammar 4. Generate editor, open it and try to assign the value 5. The error "The feature ... is not a valid changeable feature" Should be: The Xtext-Editor should show an error, if a value is assigned to a changeable = false attribute.
Created attachment 203603 [details] Patch for Check in EClassifierInfo Patch for extended Check in EClassifierInfo#containsCompatibleFeature
Adapted patch and pushed it to MASTER. Works fine. Thanks for patch and test.
Requested via bug 522520. -M.