Community
Participate
Working Groups
I often have a situation like enum MyInitialEnum { A, B, C; } The enum might be used as method parameter: interface X { void foo(MyInitialEnum myInitialEnum, ...); } class Y implements X { public void foo(MyInitialEnum myInitialEnum, ...) {}; } Now I want to rename "MyInitialEnum" to "EnumWithBetterName". Then I would like the UI to support renaming parameter names as well. E.g. in this case I want the code to look like: interface X { void foo(EnumWithBetterName enumWithBetterName, ...); } class Y implements X { public void foo(EnumWithBetterName enumWithBetterName, ...) {}; } instead of interface X { void foo(EnumWithBetterName myInitialEnum, ...); } class Y implements X { public void foo(EnumWithBetterName myInitialEnum, ...) {}; } Of course the enum in the example could also be a regular class or interface. I think this would be really useful when refactoring large APIs with interfaces and many different implementation classes. Another option could be to add a new refactoring operation which allows you to refactor parameter names. E.g. when you have interface X { void foo(EnumWithBetterName myInitialEnum, ...); } then you could select "myInitialEnum" and choose "Refactor->Rename parameter name".