How to make EMF remove generated code for removed attributes
-
18-06-2021 - |
Domanda
After removing an attribute from an ecore model, I re-generate the code, but the methods from the removed attributes remains in the generated code. Is there an automatic way to remove this code?
Edit - the code is removed from the interface, but not from the implementation. I would like to remove it from the implementation.
Soluzione
That does not always work, the only way I know is to delete the impl classes and re-generate the code based on the new ecore model.
Altri suggerimenti
If your implementation classes have the @generated tag in the javadoc of the attributes, they should be removed too.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow