I have 2 projects, A and B
project B have in his build path > libraries the class folder of A (Eclipse also recognized that there is a "Source attachment" and added it.
Both A and B are in the same workspace.
When I Ctrl + click into a function of project A referenced into a file of B Eclipse open the .class
file of A. But if I need to edit the .java
version of that file I must manually look for the filename in project A and open it from project explorer.
There isn't an easier way to go from a linked resource to -> .java
file of his source or to go from .class
to .java
in easier way than manually expand folders and open the file?
Go to Project->Properties->Java Build Path.
In Order and Export keep all the src files on top and selected.
Eclipse will now pick .java over .class files
You can use Ctrl+Shift+T to open a search Dialog.
But you should add B as a dependent project of A (and remove it from the classpath).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With