Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to remove prefix in cross-reference
How to remove prefix in cross-reference [message #1779968] Tue, 16 January 2018 09:25 Go to next message
Dat Nguyen is currently offline Dat NguyenFriend
Messages: 34
Registered: July 2014
Member
I have a language that refers to another file (for example, named abc.lib). The reference always begins by the referenced file name, in this case: "abc.xxx". How can i do to remove the prefix "abc"?

Thank you,
Dat
Re: How to remove prefix in cross-reference [message #1779970 is a reply to message #1779968] Tue, 16 January 2018 09:29 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
why do you want to remove it? what if you have

abc.xxx and xyz.xxx


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Tue, 16 January 2018 09:30]

Report message to a moderator

Re: How to remove prefix in cross-reference [message #1779974 is a reply to message #1779970] Tue, 16 January 2018 09:40 Go to previous messageGo to next message
Dat Nguyen is currently offline Dat NguyenFriend
Messages: 34
Registered: July 2014
Member
It is aimed to have only one reference file (abc).
Is there any way to remove the prefix?
Re: How to remove prefix in cross-reference [message #1779976 is a reply to message #1779974] Tue, 16 January 2018 09:45 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
the question is.

how do you do the imports then? if you have a abc.mydsl and a xyz.mydsl file?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to remove prefix in cross-reference [message #1779994 is a reply to message #1779976] Tue, 16 January 2018 12:46 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

You might want to customize the IQualifiedNameProvider to produce qualified names without the file prefix, or create an ImportScope in your local scope provider.
Previous Topic:Organize Imports not working in my xbase dsl
Next Topic:Debug "Produced region is inconsistent"
Goto Forum:
  


Current Time: Fri Apr 19 20:19:00 GMT 2024

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

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

Back to the top