Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How to change the QualifiedNameProvider from another language
How to change the QualifiedNameProvider from another language [message #1863620] Fri, 16 February 2024 09:06 Go to next message
Eclipse UserFriend
Hi

I've two languages A and B.
B has cross reference to element defined in A.
A has its own QualifiedNameProvider.

When I'm in language B (i.e. writing some instances based on grammar B) I would like to use another QualifiedNameProvider for the elements in language A. How can i change the qualified name provider for A ?

Thank you and kind regards,

[Updated on: Fri, 16 February 2024 09:11] by Moderator

Re: How to change the QualifiedNameProvider from another language [message #1863621 is a reply to message #1863620] Fri, 16 February 2024 11:23 Go to previous messageGo to next message
Eclipse UserFriend
You usually you do this in the scoping of lang b
Check out aliasedeobjectdescription.

For more you need to be more specific

Eg in lang a you could also index the elements under more than one name
And then in both scopes filter accordingly
Re: How to change the QualifiedNameProvider from another language [message #1863622 is a reply to message #1863621] Fri, 16 February 2024 11:41 Go to previous message
Eclipse UserFriend
Thank you for the answer.

That's exactly what i was looking for. I'll dig a bit on that topic. ty.
Previous Topic:[Xtext] Default values for optional assignments?
Next Topic:Contributing patches
Goto Forum:
  


Current Time: Sun Aug 31 03:46:54 EDT 2025

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

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

Back to the top