Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Name of project containing the DSL(Getting the name of the project in which the DSL source is located)
Name of project containing the DSL [message #1634519] Wed, 25 February 2015 05:04 Go to next message
Eclipse UserFriend
I need the name of the project in which the DSL source clicked by the user is located to create som file within a JEE project.

I have seen, with the debugger, that is is available in the IFileSystemAccess fsa, but it is certainly private and I can't access it.

How can I get it ?
Re: Name of project containing the DSL [message #1634548 is a reply to message #1634519] Wed, 25 February 2015 05:22 Go to previous messageGo to next message
Eclipse UserFriend
hi

you can get it from the resource.
the resource has an URI
how you translate between uri and eclipse resources can be found here

https://wiki.eclipse.org/EMF/FAQ#How_do_I_map_between_an_EMF_Resource_and_an_Eclipse_IFile.3F

Please note: this will only work in an osgi environment.
in an standalone envionent you have to map between URI and the File System
Re: Name of project containing the DSL [message #1634622 is a reply to message #1634548] Wed, 25 February 2015 06:08 Go to previous message
Eclipse UserFriend
Thanks a lot for the quick and valuable response.
Previous Topic:Problem in Cross reference resolution on serialization
Next Topic:Which JDK version shall be used for Xtext
Goto Forum:
  


Current Time: Sat Jul 12 13:30:56 EDT 2025

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

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

Back to the top