Bug 315622 - open a .java file of another project
Summary: open a .java file of another project
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: Other Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-03 12:20 EDT by Ralf Hauser CLA
Modified: 2010-07-07 12:29 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!