If you have the dependent library open as a Java project within Eclipse, you can add the project to the build path. ( Right click on project -> properties -> java build path -> Projects -> Add).
Under the Order and Export section, make sure the project is above the library.
After doing this when you press F3, the .java file will open.