Shortcut for changing package name declaration in java

We have a simple java project in eclipse, and we have moved the package name for the existing source code. Is there a shortcut for changing package name declarations when you are inside the code editor.

+5
source share
4 answers

Select a package name and use Refactor -> Rename( Shift+Alt+R) to open the Rename Package dialog box.

+8
source

- , , . , - ( SVN). , , .

+2

Alt-Shift-R. , , "" → "".

, .

, .

+1

If you change the structure of the project, eclipse prompts you to update the links. If you enable eclipse, it will do it automatically. Now you can perform the Find and Replace operation to manually update the package names.

0
source

All Articles