Annoted Java generation broken in latest EMF? [message #1779518] |
Tue, 09 January 2018 07:05 |
Josh Jones Messages: 2 Registered: January 2018 |
Junior Member |
|
|
I recently updated my dev environment from Eclipse Mars to Oxygen, and with it moved from EMF 2.11.2 to EMF 2.13.0. Now when I try to reload/regenerate my model code from annotated Java, it doesn't work anymore.
Specifically, I have a model in project A:
package com.model.version
import org.eclipse.emf.ecore.EObject;
/**
* @model abstract="true"
*/
public interface VersionedModel extends EObject {
/**
* @model suppressedSetVisibility="true" default="0"
*/
public int getModelVersion();
}
and then a child model in project B: (This is important. It only seems to break when the child model is in a different project).
package com.ui.model.color;
import com.model.version.VersionedModel;
/**
* @model abstract="true"
*/
public interface IColorPalette extends VersionedModel {
}
Once I generate my ecore models from my annotated java, and generate my code the result is that IColorPaletteImpl extends EObjectImpl, when it should be extending VersionedModelImpl.
This worked fine in our previous version of EMF, but stopped working with the new upgrade. Also, if I manually configure my Ecore model to define IColorPalette's supertype, the code generates correctly. However, as soon as I regenerate the Ecore model from the annotated java, it resets back again.
Is there some new detail in the latest versions of EMF that we're missing?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03829 seconds