|
|
Re: Annotated Java import issues with EMF 2.9 [message #1240994 is a reply to message #1240943] |
Fri, 07 February 2014 05:10  |
Eclipse User |
|
|
|
Hi Ed,
after a few more tries I managed to get it back working by applying the following changes to the annotation:
1. Always fully qualifing the referenced ecore Objects when used as method parameters. So the following occurences
@model parameters = "EStructuralFeature"
@model parameters = "EReference"
@model parameters = "EAttribute"
have been replaced by
@model parameters = "org.eclipse.emf.ecore.EStructuralFeature"
@model parameters = "org.eclipse.emf.ecore.EReference"
@model parameters = "org.eclipse.emf.ecore.EAttribute"
2. Adding the dataType annotation when ecore model objects are used as method return type.
The following case
/**
* @model parameters = "String"
*/
public EStructuralFeature getFeature(String typeLabel);
has been updated with following annotation
/**
* @model dataType="org.eclipse.emf.ecore.EStructuralFeature" parameters = "String"
*/
public EStructuralFeature getFeature(String typeLabel);
Apparently in the previous versions EMF where able to handle the missing dataType annotation and recognized the Ecore objects even when they weren't specified by their fully qualified name.
Diego
|
|
|
Powered by
FUDForum. Page generated in 0.04143 seconds