[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2m] Re: EMF Changeable problem

Hi,

thanks for that idea. My problem is, that changing the .ecore file and re-generating the model-code would overwrite the API-changes. So I'll simply stick to the plan to make these attributes not changeable in the editor for the model. This won't help if someone changes the model via the API, but this is not planned at the moment.

Thanks,
Max

Ed Merks wrote:

Max,

If you make something unchangeable you should expect never to be able to change it. So generally it will be transient and likely will be derived, i.e., its value is computed from the value of something else. Perhaps you just want to suppress the setters from the API to make it difficult but not impossible for the user to change the value.