Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

I use JDeveloper on an almost daily basis and when something as basic and fundamental to the product as the rename functionality breaks, it makes you want to tear your hair out. I'm talking about the Refactor Rename feature that has been broken since the 12c release. Luckily there is a workaround.

This is the error that appears when you try to do a Rename: SEVERE: There are no rename handlers for oracle.jdevimpl.java.editing.JavaViewSelectionHelper$SourceElementElement registered with the RenameHandlerService!. Weird right, no rename handler? Something odd is going on!

The rename functionality is accessed via the pop-up menu in the editor. Select a variable to rename, right-click it, open the Refactor sub-menu and click Rename.
jdevrenerr2.png


The Messages Log window will then show something like this:
Feb 19, 2015 8:44:52 AM oracle.ide.cmd.RenameCommand doit
INFO: There are no rename handlers for oracle.jdevimpl.java.editing.JavaViewSelectionHelper$SourceElementElement registered with the RenameHandlerService, falling back to simple rename!
Feb 19, 2015 8:44:52 AM oracle.ide.cmd.RenameCommand doit
SEVERE: There are no rename handlers for oracle.jdevimpl.java.editing.JavaViewSelectionHelper$SourceElementElement registered with the RenameHandlerService!


Now this issue manifests only if whatever you are trying to rename does not appear in the Structure window. So if you have statics hidden and try to rename a static object (like I did), you will get the error.

jdevrenerr3.png jdevrenerr1.png


The workaround is to simply show everything in the Structure window. It's as simple as that.



-i

A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.

All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle). Use of any information contained in this blog post/article is subject to this disclaimer.
Hi! You can search my blog here ⤵
NOTE: (2022) This Blog is no longer maintained and I will not be answering any emails or comments.

I am now focusing on Atari Gamer.