|
Re: How can you change properties of attributes at runtime? [message #1860604 is a reply to message #1860603] |
Mon, 21 August 2023 12:27 |
Ed Merks Messages: 32985 Registered: July 2009 |
Senior Member |
|
|
Certainly there is no way to specify that in the Ecore model. Even in the model instance, you could change valueType after setting one more more of the other features and then you'd still have an inconsistency. In the end, you'll need to specialize the generated DesignParameterImpl' setters to constrain things, and even then, you'll have to be careful what EcoreUtil.copy does, i.e., the valueType would presumably need to be set first, which is generally the case if it's earlier in the list of EAttributes.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.01857 seconds