Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Package URI is not properly generating
Package URI is not properly generating [message #1809456] Tue, 16 July 2019 12:26
Nagashree KN is currently offline Nagashree KNFriend
Messages: 24
Registered: September 2018
Junior Member

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!!!
Previous Topic:Suppress 'default' modifier on interface method?
Next Topic:Content Assist not working for Cross Reference
Goto Forum:

Current Time: Mon Jan 27 07:20:29 GMT 2020

Powered by FUDForum. Page generated in 0.02270 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top