Reputation: 934
I've got two projects: A and B. B is dependent on A. Now I've got a package in B that I want to move into A. I would like to know what is the safe and correct way and keep all dependencies updated.
Thanks very much :)
PS: Now the dependence between A and B is already set. And for editing purpose of A maybe it's not good to make it a library
Upvotes: 0
Views: 171
Reputation: 121998
Right click on the package.
Refactor > Move
Select the destination project.
Refactoring actions change the structure of your code without changing its semantic behavior.
Eclipse :Moving and copying Java elements
Upvotes: 2
Reputation: 10497
Just select the package --> Press Ctrl + C . Then go to the destination where you want to move the package --> Press Ctrl + V.
Upvotes: 0