In Spring Tool Suite, I have a project open and want to rename a .java file. I click the file then File > Rename and rename the file. I see the file name updates in the left pane (Project Explorer) but then it quickly changes back to the old file name.
Any one know how to accomplish this or what's wrong?
The provided answers would probably work in most cases but not for me. I had to rename the file on disk, refresh the Project Explorer, which picked up the new name. The go back on disk and rename the file to the target name, refresh PE and now all is well.