Only a type can be imported. [message #990161] |
Tue, 11 December 2012 03:24  |
Eclipse User |
|
|
|
Hi,
when I generate my diagram code I get some strange errors:
the import declaration I get errors:
import eastadl21.EAST_ADL.Infrastructure;
Only a type can be imported. eastadl21.EAST_ADL.Infrastructure resolves to a package
Infrastructure is a Package in my Ecore.
And in the code the elements can not be resolved:
myFeaturesToSynchronize.add(Infrastructure.Elements.ElementsPackage.eINSTANCE.getEAPackage_Element());
Infrastructure cannot be resolved
So, I have to manually resolve the problems... that's not practical for me. Do I really have to change the generation templates to get the imports working?! Or is there a workaround?
Thanks
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.24047 seconds