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: 86
Registered: August 2018
Member
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]

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: 14349
Registered: July 2009
Senior Member
Please check IQualifiedNameProvider and it's default impl DefaultDeclarativeQualifiedNameProvider

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


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[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 Sep 26 13:46:34 GMT 2022

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

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

Back to the top