Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Best practice for checking URI equality
Best practice for checking URI equality [message #1735151] Wed, 15 June 2016 21:44
Larry LeBron is currently offline Larry LeBronFriend
Messages: 124
Registered: October 2015
Senior Member
I have been using URIs as unique identifiers for positions in my dsl programs.

However, I just discovered that I'm getting unequal versions of URIs for the same position in the code.

Specifically, what I've just observed is one URI for the entity reading:

[code]
platform:/resource/<path>/<filename>#/0/@entities.1
[code]

and then, later, one with:

[code]
revision:/<filename>#/0/@entities.1
[code]

So, is there a best practice I can perform on these different versions to confirm that they're referring to the same point in the code?

For example, perhaps comparing the value of URI.path(), and using that as my identifier, instead of URIs themselves?

Thanks.
Previous Topic:navigable reference to non-model file without xbase
Next Topic:Xtext, Idea multiple output configuration
Goto Forum:
  


Current Time: Sat Nov 16 01:33:16 GMT 2019

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

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

Back to the top