Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Package URI is not properly generating
Package URI is not properly generating [message #1809456] Tue, 16 July 2019 08:26
Eclipse UserFriend
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: Fri Apr 18 04:17:29 EDT 2025

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

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

Back to the top