Wrong code generation in NodeEditPart.javajet
Status: Alpha
Brought to you by:
jcheuoua
NodeEditPart.javajet generates files which does not compile if the
node class is an interface because it tries to import and to use the
corresponding "<InterfaceName>Impl" class from the model which
does not exist (because it is an interface).
The problem appears in the getter:
public <%=genClass.getImportedClassName()%> get<%
=ecoreClass.getName()%>() {
return (<%=genClass.getImportedClassName()%>)
getENode().getEObject();
}
For an interface it should be:
public <%=genClass.getImportedInterfaceName()%> get<%
=ecoreClass.getName()%>() {
return (<%=genClass. getImportedInterfaceName()%>)
getENode().getEObject();
}
or something like that.
TIA