Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Loading Objects without the file path
Loading Objects without the file path [message #662713] Thu, 31 March 2011 12:00 Go to next message
Eclipse UserFriend
hi,

I have a builder participant that keeps information on the project files.

My problem is when y create two files with the same name, when i create the second file i want to load the first in order to get some information, but the builder doesn't bring the second file in a incremental build, so i want to load the file but i only have the object name and not the file path.

So there is a way to load the object without the uri ?? and with the object name.

For now I'm searching the project for a file with the same name but its not going to be possible to do it in this way with a large scale project.

Thanks

Re: Loading Objects without the file path [message #662746 is a reply to message #662713] Thu, 31 March 2011 14:39 Go to previous message
Eclipse UserFriend
Isn't there any cross-reference that you could follow? Then you could resolve that reference and through the object's resource you know the file.

Otherwise: Is the path to the second file derivable? Is there any naming convention where this file is located?

I doubt that you really have to search for a file with the same name at unknown location.

~Karsten
Previous Topic:XtextBuilder - StackOverflowError
Next Topic:Xtext for composed metamodels
Goto Forum:
  


Current Time: Thu Aug 07 22:57:38 EDT 2025

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

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

Back to the top