Skip to main content



      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 14: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 15:01] by Moderator

Re: how is the qualified name calculated [message #1854303 is a reply to message #1854302] Thu, 11 August 2022 15: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 02:19] by Moderator

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


Current Time: Tue Mar 18 17:21:20 EDT 2025

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

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

Back to the top