wceo
wceo

Reputation: 934

How to move file/folder to a different depended project in Eclipse?

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

Answers (3)

Suresh Atta
Suresh Atta

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

gbl
gbl

Reputation: 188

Make A as Library(Check Is Library) and provide its reference in B.

Upvotes: 0

Vimal Bera
Vimal Bera

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

Related Questions