einsteinsci
einsteinsci

Reputation: 1147

Eclipse Refactor > Rename disabled

I have a project that I've been using Refactor > Rename quite a bit on, and all of a sudden the shortcut (Alt-Shift-R) stops working, instead bringing up the Run menu as if the shortcut didn't exist. Rename is missing from the right-click refactor menu, and is disabled in the menu bar. I've tried restarting Eclipse, but the issue persists. All refactoring actions in all menus are disabled except "inline". What do I do?

Upvotes: 2

Views: 2120

Answers (1)

shockbeton
shockbeton

Reputation: 31

Make sure you select the file in the "Package Explorer" view.

Not the "Project Explorer" view, Not the "Navigator" view, Not the (insert whichever redundant file-view views I've omitted) view, but only, and for no compellingly good reason, the Package Explorer view.

This will enable the disabled Refactor options.

Upvotes: 3

Related Questions