Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Rename/Move Resource refactoring for importURI-style includes
Rename/Move Resource refactoring for importURI-style includes [message #900361] Mon, 06 August 2012 15:43 Go to next message
Dénes Harmath is currently offline Dénes HarmathFriend
Messages: 157
Registered: July 2009
Senior Member
Hi all,

I have a DSL using the importURI mechanism. If a file is renamed/moved in the workspace, I want to update all import statements referencing it to refer to the new path. Is there a standard solution for this in Xtext or do I have to manually iterate through all the resources in the workspace, find all the import statements in their EObjects and create the LTK changes for them? If the latter is the case, what is the most effective way to do this, and should I file an enhancement request for a generic implementation?

Thank you in advance,
thSoft
Re: Rename/Move Resource refactoring for importURI-style includes [message #900787 is a reply to message #900361] Wed, 08 August 2012 13:27 Go to previous message
Dénes Harmath is currently offline Dénes HarmathFriend
Messages: 157
Registered: July 2009
Senior Member
In the meantime, I implemented this functionality. Smile Here it is: http://code.google.com/a/eclipselabs.org/p/elysium/source/browse/#git%2Forg.elysium.ui%2Fsrc%2Forg%2Felysium%2Fui%2Frefactoring
Previous Topic:problem with string rule and double quote rule
Next Topic:Triggering generator using context menu in xtext
Goto Forum:
  


Current Time: Thu Apr 25 17:26:30 GMT 2024

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

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

Back to the top