Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Unique identifiers across XText resources(How to prevent duplicate identifiers across multiple XText resource files in a project.)
Unique identifiers across XText resources [message #1101482] Wed, 04 September 2013 14:12 Go to next message
Wolfgang Zeller is currently offline Wolfgang ZellerFriend
Messages: 18
Registered: September 2013
Junior Member
Is there a (simple) way to prevent duplicate identifiers across multiple XText resources?

Example:

File 1 contains:

FUNCTION myFunction : INT
return 5 + 4;
END_FUNCTION


File 2 contains:

FUNCTION myFunction : REAL
return 2.2 + 4.4;
END_FUNCTION


Currently, only duplicate identifiers are detected in the scope of a single xtext File within in our language, but we need a detection across all files within a project.
Re: Unique identifiers across XText resources [message #1101495 is a reply to message #1101482] Wed, 04 September 2013 14:35 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14716
Registered: July 2009
Senior Member
Hi,

i dont know a own facility for that: so you have to validate youself.

http://www.eclipse.org/forums/index.php/mv/msg/261440/754503/#msg_754503


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Unique identifiers across XText resources [message #1101499 is a reply to message #1101495] Wed, 04 September 2013 14:39 Go to previous message
Wolfgang Zeller is currently offline Wolfgang ZellerFriend
Messages: 18
Registered: September 2013
Junior Member
Thank you for the fast response, we will check your hint.
Previous Topic:Add types to auto-completion
Next Topic:Xtext: Couldn't resolve reference to JvmType 'String'
Goto Forum:
  


Current Time: Wed Sep 25 20:51:59 GMT 2024

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

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

Back to the top