Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » handle affected file names in case of rename refactoring
handle affected file names in case of rename refactoring [message #697180] Fri, 15 July 2011 17:36 Go to next message
Henrik Rentz-Reichert is currently offline Henrik Rentz-ReichertFriend
Messages: 261
Registered: July 2009
Senior Member
Hi all,

a second problem I'm faced with is that I have to change diagram file names when I change model class names.

Is there a hook where I can handle this case?

Thanks,
Henrik
Re: handle affected file names in case of rename refactoring [message #697689 is a reply to message #697180] Sun, 17 July 2011 18:24 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Henrik,

org.eclipse.xtext.xtend2.ui.refactoring.Xtend2RenameStrategy.createDeclarationUpdates(String,
ResourceSet, IRefactoringUpdateAcceptor) should give you an idea on how
to implement that feature.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

On 15.07.11 19:36, Henrik Rentz-Reichert wrote:
> Hi all,
>
> a second problem I'm faced with is that I have to change diagram file names when I change model class names.
>
> Is there a hook where I can handle this case?
>
> Thanks,
> Henrik
Previous Topic:Matching start/end tags
Next Topic:(no subject)
Goto Forum:
  


Current Time: Thu Apr 25 15:57:57 GMT 2024

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

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

Back to the top