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

| Views: 1412
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

Have comments or feedback on what I wrote? Please share them below! Found this useful? Consider sending me a small tip.
comments powered by Disqus
Other posts you may like...