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

NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the FAQ for more details.
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

Skip down to comments...
Hope you found this post useful...

...so please read on! I love writing articles that provide beneficial information, tips and examples to my readers. All information on my blog is provided free of charge and I encourage you to share it as you wish. There is a small favour I ask in return however - engage in comments below, provide feedback, and if you see mistakes let me know.

If you want to show additional support and help me pay for web hosting and domain name registration, donations, no matter how small, are always welcome!

Use of any information contained in this blog post/article is subject to this disclaimer.
 
comments powered by Disqus
Other posts you may like...