Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Rename refactoring with multiple languages
Rename refactoring with multiple languages [message #1799305] Tue, 04 December 2018 08:46 Go to next message
Eclipse UserFriend
This is with Xtext 2.12 (will update to 2.15 soon):
I have 2 languages L1 and L2. L2 has references to elements declared in L1. If I use rename refactoring in L1, references in L2 are not updated.
I want to implement rename refactoring that updates to such references. The implementation in L1 should not depend on L2, so it would involve some kind of event/listener approach.
Is there any built-in support for this in Xtext?


Re: Rename refactoring with multiple languages [message #1799306 is a reply to message #1799305] Tue, 04 December 2018 08:49 Go to previous messageGo to next message
Eclipse UserFriend
this should work out of the box. i wonder what you do that it is not working.
=> can you debug where the referenced elements are searched?
Re: Rename refactoring with multiple languages [message #1799307 is a reply to message #1799306] Tue, 04 December 2018 08:50 Go to previous messageGo to next message
Eclipse UserFriend
p.s.: and please update to 2.16 directly
Re: Rename refactoring with multiple languages [message #1799354 is a reply to message #1799307] Wed, 05 December 2018 08:39 Go to previous message
Eclipse UserFriend
Thanks, the issue was caused by a scoping bug.
Previous Topic:Xtext & Xtend 2.16 release
Next Topic:Xtext 2.16 requires Tycho 1.3.0 that is missing
Goto Forum:
  


Current Time: Fri Jun 20 22:52:00 EDT 2025

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

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

Back to the top