Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Rename Refactoring also rename Files
Rename Refactoring also rename Files [message #1701986] Fri, 17 July 2015 09:32 Go to next message
Ma Aa is currently offline Ma AaFriend
Messages: 7
Registered: May 2015
Junior Member
Heyho,

I'm trying to accomplish rename refactoring in eclipse similar to the Java rename.

This means that if I'm having a file Ben.mydsl with 'Greeting Ben!' and I rename Ben to Max, I want the file Ben.mydsl also be renamed to Max.mydsl.

I found a similar thread here, but it's dated to 2011 and I don't know how up to date it is (as I can't find those classes).

If I look at the Xtend source they bind 'IRenameStrategy' to a custom class, but I get an api restriction.


Thanks in regards!
Re: Rename Refactoring also rename Files [message #1701999 is a reply to message #1701986] Fri, 17 July 2015 10:39 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
api restriction simply says: you are not allowed to complain if the api changes. besides this have a look at the xtend code is the right thing to do

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Fri, 17 July 2015 10:41]

Report message to a moderator

Previous Topic:cross reference issue across multiple grammars
Next Topic:Configure Xtext Artifact Generation
Goto Forum:
  


Current Time: Tue Apr 23 06:54:15 GMT 2024

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

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

Back to the top