在Eclipse中,如何将项目文件不依赖于库移动到更抽象的项目? [英] In Eclipse, how can I move project files without dependencies on a library to a more abstract project?
问题描述
我正在将包含 no dependencies 的所有类迁移到更抽象的项目中,在我的情况下 android。*
。有没有Eclipse功能可以帮助自动化?
理想情况下,会有一些功能可以让您自动搜索并移动可重新定位到新项目的文件。它会找到这样的文件:
- 独立于指定的包(带通配符)
- 独立于相同项目中依赖于同一个软件包的其他文件(换句话说,没有对软件包的间接依赖)
我提交了 Eclipse增强请求支持这样的重构。与此同时,我发现了一些有前景的工具来帮助解耦和依赖关系分析。
- eDepend 是一个依赖查看器插件,它包含一个
类/包依赖关系图,显示元素依赖关系,
与库/其他项目和依赖关系周期的关系。它
还可以列出查找导致依赖关系的类。 - STAN Java的结构分析
- nWire
- 分类依赖关系分析器
- 依赖关系查找器
相关问题: a href =http://stackoverflow.com/a/1380802/403455> 1
I have two Eclipse projects: one that depends upon a certain library (android.jar) and one that is more abstract and doesn't contain that dependency.
I am in the process of migrating all classes that have no dependencies on the package, in my case android.*
, to the more abstract project. Is there a Eclipse feature that can help automate the move?
Ideally, there would be feature that directly lets you automatically search for and move files that can be relocated to a new project. It would find files that that are:
- independent of a specified package (with wildcards)
- independent of other files within the same project that are dependent on the same package (in other words, no indirect dependencies on the package)
I submitted an Eclipse enhancement request to support such a refactoring. In the meantime, I found some promising tools to help with the decoupling and dependency analysis.
- eDepend is a dependency viewer plugin that includes a Class/Package dependency diagram that displays elements dependencies, relationships with libraries/other projects and dependency cycles. It can also list find classes that caused the dependencies.
- STAN structure analysis for Java
- nWire
- Class Dependency Analyzer
- Dependency Finder
Related questions: 1
这篇关于在Eclipse中,如何将项目文件不依赖于库移动到更抽象的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!