Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to link project in eclipse

I have a java project and I want to develop it without replacing the source code from its place. I want to link my code to my workspace without replace physically?

like image 310
Ballon Avatar asked Jul 05 '11 09:07

Ballon


2 Answers

  1. Select the Project you want to reference from on Package Explorer
  2. Right-click and go to Properties ( or hit Ctrl-Enter ).
  3. Under Projects in Java Build Path you can add another project which is currently open.

If you want to override a class you can make a copy of it in your current project and move it further up in the classpath in Order and Export.

like image 57
Mike Kwan Avatar answered Sep 20 '22 17:09

Mike Kwan


Linking Source

Project properties -> Java build path (tree-item) -> Source (tab) -> Link source (button)

Linking Projects

Project properties -> Java build path (tree-item) -> Projects (tab) -> Add... (button)

Suggestion

See Eclipse help topic: Workbench User Guide > Tasks > Working with projects, folders and files > Creating linked resources.

like image 26
Adeel Ansari Avatar answered Sep 20 '22 17:09

Adeel Ansari