|Package URI is not properly generating [message #1809456]
||Tue, 16 July 2019 12:26
| Nagashree KN
Registered: September 2018
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.
Powered by FUDForum
. Page generated in 0.02270 seconds