When I invoke CTRL+R with a Maven Java program being in focus I get "The Rename refactoring cannot be applied in this context". However, if I right-click on the project and select "Rename" I am presented with a dialog for:
1. Renaming the project display name
2. Renaming the artifactId
3. Renaming the project folder
Expected behavior: CTRL+R should map to the project's context-sensitive Rename operation.
Ctrl-R is for Refactor > Rename, dealing with source code. Project renames are not associated with this system at all.
I understand what it is currently bound to. This enhancement request is for making the keyboard shortcut context-sensitive. Meaning, when source-code is focused use source-code refactoring, when a project is selected use project refactoring.
I think implementing this feature would enhance usability. There is also the precedence of CTRL+F in the editor searching a single file whereas CTRL+F on a project searching the entire project. Please consider reopening the issue.
ActionsImplementationFactory.doRename could check for a Project instance. Could perhaps also be implemented by a ActionsImplementationProvider; not clear to me whether that would best live in refactoring.api or projectui. (The former would avoid a new dep.)
Same, perhaps, for "copy" and "move" actions. "Delete" is a little uncomfortable since this is labeled "Safely Delete" in the UI, which is not exactly appropriate for COMMAND_DELETE which generally makes no attempt to check for inbound references.