Package URI is not properly generating [message #1809456] |
Tue, 16 July 2019 08:26 |
Eclipse User |
|
|
|
Hi,
I have xtext project for existing ecore model. Model is having package hierarchy like- MainPackage->Subpackage1->Subpackage2->Subpackage3->Subpackage4.
Subpackage4 has enumtype and its value.
Here Subpackage2 does not have Subpackage2PackageImpl class.
My problem is, while getting the EEnumLiteral from EnumLiteralDeclarationImpl class enum value is going null. so in xtext editor i am getting error like EEnumLiteral cannot be casted.
While debugging i understood that Package uri is not proper. I was getting uri "MainPackage/Subpackage1#//Subpackage2/Subpackage3/Subpackage4/Enumtype/enumValue" instead of "MainPackage/Subpackage1#//Subpackage3/Subpackage4/Enumtype/enumValue".
can any one help how can i get enum value by ressolving the uri.
Thank you!!!
|
|
|
Powered by
FUDForum. Page generated in 0.03692 seconds