Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » how is the qualified name calculated(and how to change the default behavior)
how is the qualified name calculated [message #1854302] Thu, 11 August 2022 18:59 Go to next message
Eclipse UserFriend
Hi

I would like to change the way the qualified name is calculated.

For example, my grammar produces the following qualified name, using the name property in my grammar.

ContainerLevel0 -> ContainmentLevel1 -> ContainmentLevel2 -> Property


I would like to change the way the name for 'ContainerLevel1' is calculated to display another textual. I don't want to change my grammar. which approaches are possible? Which classes should I extend/modify?

Thank you and kind regards,

[Updated on: Thu, 11 August 2022 19:01] by Moderator

Report message to a moderator

Re: how is the qualified name calculated [message #1854303 is a reply to message #1854302] Thu, 11 August 2022 19:01 Go to previous message
Eclipse UserFriend
Please check IQualifiedNameProvider and it's default impl DefaultDeclarativeQualifiedNameProvider

https://dietrich-it.de/xtext/2011/07/16/iqualifiednameproviders-in-xtext-2.0/

[Updated on: Fri, 12 August 2022 06:19] by Moderator

Report message to a moderator

Previous Topic:xtext and ocl
Next Topic:Matching Unicode category in terminal rules
Goto Forum:
  


Current Time: Sat Feb 15 01:45:29 GMT 2025

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

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

Back to the top