Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Error: Refactoring is not applicable([rename refactoring])
Error: Refactoring is not applicable [message #1709592] Tue, 29 September 2015 13:02 Go to next message
aurel pestell is currently offline aurel pestellFriend
Messages: 90
Registered: October 2013
Location: Sweden
Member
Hi,

In my DSL, I would like to be able to rename a class.
Everything is in place as it should but whenever I attempt
a rename refactoring I get a message from the RenameRefactoringExecuter
saying: "Refactoring is not applicable".

When I look at the refactoringProcessors that are involved,
two of them are created:
-one RenameTypeProcessor that should rename the class itself.
-one RenameVirtualMethodProcessor that renames the return Type of a contained method ... And that type is the enclosing Class renamed by the first processor.

Is it normal there is a conflict there ? How should I address that kind of problem ?

Thanks.
BR

Aurel

Edit: the fail happens in the "isApplicable()" check of the second processor but it's on the Eclipse side I guess...

[Updated on: Tue, 29 September 2015 13:05]

Report message to a moderator

Re: Error: Refactoring is not applicable [message #1709610 is a reply to message #1709592] Tue, 29 September 2015 14:16 Go to previous message
aurel pestell is currently offline aurel pestellFriend
Messages: 90
Registered: October 2013
Location: Sweden
Member
Oeps it seems the second element (the method) should have been discarded because it is generated by the inferer.
Previous Topic:Xtext commands missing from context menu
Next Topic:Reference to current list
Goto Forum:
  


Current Time: Fri Apr 26 22:55:09 GMT 2024

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

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

Back to the top