Eclipse> Java>打开链接资源(.java而不是.class)? [英] Eclipse > Java > open linked resources sources (.java instead of .class )?
问题描述
我有2个项目,A和B
I have 2 projects, A and B
项目B在他的构建路径>库中有A的类文件夹(Eclipse也认识到有一个来源附件并添加它。
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.
A和B都在同一个工作区。
Both A and B are in the same workspace.
当我 Ctrl +单击项目A的函数引用到B Eclipse文件中打开A的 .class
文件但是如果我需要编辑 .java
该文件的版本我必须在项目A中手动查找文件名并从项目资源管理器中打开它。
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.
从链接资源到源代码的 - > .java
文件或从 .class 到
.java
比手动扩展文件夹和打开文件更简单吗?
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?
推荐答案
您可以使用 Ctrl + Shift + T 打开搜索对话框。
You can use Ctrl+Shift+T to open a search Dialog.
但是你应该把B添加为A的依赖项目(和从类路径中删除它。)
But you should add B as a dependent project of A (and remove it from the classpath).
这篇关于Eclipse> Java>打开链接资源(.java而不是.class)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!