在Eclipse中,我怎么能快速访问&QUOT源;机器人库项目"从使用它的项目的源? [英] In Eclipse, how can I quickly access the source of an "android library project" from the source of a project that uses it?

查看:101
本文介绍了在Eclipse中,我怎么能快速访问&QUOT源;机器人库项目"从使用它的项目的源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 在项目A是我的工作区一个Android库项目(通过项目属性 - > android->库:是库)。
  • A计划声明CLASSA。
  • 在项目B使用项目A(通过项目属性 - > android->库:添加...)。
  • 在项目B实例CLASSA。

在我的项目中的B使用 F3(公开声明)在ClassA的实例,它的让我的classA.class 在a.jar文件是包括在B,从A建

When I use F3 ("open declaration") over the classA instance in project B, it leads me to the classA.class in the A.jar that is included in B, built from A.

有没有办法直接去项目源classA.java 一个,而不是寻找它在Package Explorer?

Is there a way to go directly to the source classA.java in project A rather than looking for it in the package explorer?

我觉得这是一个新的ADT14,以前有X_src文件夹,每个包括库项目:例如: A_src将出现在B为项目的根目录的源文件夹。

I think this is new to ADT14, formerly there were X_src folder for each included library project: e.g. A_src would appear in B as a source folder in the root of the project.

推荐答案

右键单击非库项目(项目B),然后选择的构建路径的:

Right click on the non-library project (Project B) and select Build Path:

  • 项目标签,添加库项目的项目A 的作为依赖。
  • 订单和出口标签,可以肯定的项目A 的被赋予更高的precedence比占位符/包的库项目的。
  • In the Projects tab, add the library project Project A as a dependency.
  • In the Order and Exports tab, be sure Project A is given higher precedence than the placeholder/bundle Library Projects.

我不得不做这两个步骤,以解决此问题,ADT15时,Eclipse 3.7和新项目。

I had to do both of these steps in order to fix this issue, with ADT15, Eclipse 3.7 and new projects.

这篇关于在Eclipse中,我怎么能快速访问&QUOT源;机器人库项目"从使用它的项目的源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆