Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315622

Summary: open a .java file of another project
Product: [Eclipse Project] JDT Reporter: Ralf Hauser <hauser>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: amj87.iitr, hauser, moreira, remy.suen
Version: 3.6   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard:

Description Ralf Hauser CLA 2010-06-03 12:20:40 EDT
Build Identifier: 20090920-1017

to avoid projects being in circular dependencies (Bug 314891) one strategy could be to add the other project's (external) class folder tree (best with a variable) and assign the sources to another (external) folder variable.

When all projects are on "build automatically" changes in either project are compiled immediately and e.g. hot-reloaded to a running junit test latest when F5/Refresh is done on the other projects.

This works very nicely for debugging as long as edits are only in the current project. However, if you open a class file of another project only the "J0101"-iconed class-source-viewer will open that does not allow to edit the .java file.

Reproducible: Always

Steps to Reproduce:
Suggestion: if the F3 command detects that a the source file of a class corresponds to the same physical file of another open project, instead of just opening the viewer, open the file editor.
Comment 1 Ayushman Jain CLA 2010-06-04 02:01:10 EDT
Ralf, since this is a suggestion and not a bug per se, it would be better if you can just mention it on bug 314891, and it'll be taken care of.
Thanks!