Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to get Absolute Path of the imported Resource(How to get Absolute Path of the imported Resource)
How to get Absolute Path of the imported Resource [message #1803039] Thu, 21 February 2019 11:16 Go to next message
Girish Kumar is currently offline Girish KumarFriend
Messages: 48
Registered: May 2011
Member
Hi,

I have a created a DSL, which contains importURI, so that i can include other files.

Ex :
A.pdd
Storage AStorage {
...
}

B.pdd
include "../../A.pdd"

Strorage BStorage extends AStorage {
...
}

Everything works fine but, for some reason i need to get the Absolute path of the include "../../A.pdd". This is something i can solve, but i guess there will be some ways to do that already

[Updated on: Thu, 21 February 2019 11:19]

Report message to a moderator

Re: How to get Absolute Path of the imported Resource [message #1803054 is a reply to message #1803039] Thu, 21 February 2019 14:05 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
You cannot
You should resolve to uris relative to each other
As the impl for import uris are


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to get Absolute Path of the imported Resource [message #1803071 is a reply to message #1803054] Thu, 21 February 2019 20:16 Go to previous messageGo to next message
kozhaev Vladimir is currently offline kozhaev VladimirFriend
Messages: 108
Registered: July 2009
Senior Member
May I ask you to tell me something more.
My goal is to get the fields list of the class name. How I can to do it?
Re: How to get Absolute Path of the imported Resource [message #1803088 is a reply to message #1803071] Fri, 22 February 2019 08:19 Go to previous message
Uli Merkel is currently offline Uli MerkelFriend
Messages: 250
Registered: June 2013
Senior Member
just my 5 cent:
in the generator of the greeting example, you find how to get a list for the join.
apply this against your class object looking for typeof fields may be worth a try?
Previous Topic:BuilderDeltaConverter leaks JDT JavaModelCache.childrenCache
Next Topic:Usage of org.eclipse.sphinx.emf.check.checkvalidators
Goto Forum:
  


Current Time: Thu Mar 28 17:46:19 GMT 2024

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

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

Back to the top