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
jo ber is currently offline jo berFriend
Messages: 94
Registered: August 2018

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]

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
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14699
Registered: July 2009
Senior Member
Please check IQualifiedNameProvider and it's default impl DefaultDeclarativeQualifiedNameProvider

Twitter : @chrdietrich
Blog :

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

Report message to a moderator

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

Current Time: Mon Jul 22 15:17:02 GMT 2024

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

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

Back to the top