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


Current Time: Tue Sep 17 01:19:55 GMT 2019

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

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

Back to the top