Eclipse Java Mercurial项目搜索 [英] Eclipse Java Search of Mercurial Project

查看:82
本文介绍了Eclipse Java Mercurial项目搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MercurialEclipse开发一个存储在Mercurial(在Google Code中)的Java项目.我也有在同一Eclipse中打开的cvs中存储的Java项目.

I'm using MercurialEclipse to develop a Java project stored in Mercurial (at Google Code). I also have Java projects stored in cvs open in the same Eclipse.

Eclipse搜索文本适用于所有项目.但是在Mercurial项目中,使用 Java Search 搜索对Java类型的引用失败了,但是可以用于所有其他项目.

Eclipse search with File Search for text works for all projects. But search with Java Search for references to a Java type fails with the Mercurial project, but works for all other projects.

我怀疑会出现此问题,因为Mercurial项目中的src/目录比Eclipse期望的要深一层.也就是说,它看起来像Mercurial_project/another_directory/src.但是,如果这确实是问题所在,那么如何配置Eclipse来适应它呢? (不可能在中央存储库中更改Mercurial项目的结构.正在使用太多其他人.)

I suspect this problem arises because the src/ directory in the Mercurial project is one layer deeper than Eclipse expects. That is, it looks like Mercurial_project/another_directory/src. But if this is indeed the problem, how can I configure Eclipse to adjust to it? (It would not be possible to change the structure of the Mercurial project at the central repository. Too many other people are using it.)

谢谢 亚瑟

版本:
Eclipse SDK:版本:3.6.1; Build ID:M20100909-0800
MercurialEclipse 1.8.1.v201104191217 mercurialeclipse.feature.group

Versions:
Eclipse SDK: Version: 3.6.1; Build id: M20100909-0800
MercurialEclipse 1.8.1.v201104191217 mercurialeclipse.feature.group

推荐答案

我不认为这与Mercurial Eclipse有关,但与Java构建配置有关.如果右键单击项目,然后选择构建路径"->配置构建路径",并确保所需的源目录在源"选项卡中.如果未获得Build Path选项,请确保该项目是Java项目(如果不确定这样做,请在.project文件中查找Java性质,然后创建一个新的Java项目并查看该.profile文件的外观喜欢).

I don't think this is an issue with Mercurial Eclipse but with your Java build configuration. If you right-click on the project and select Build Path -> Configure Build Path and make sure the desired source directory is in the Source tab. If you don't get the Build Path option, make sure the project is a Java project (look in the .project file for the Java nature, if you are unsure about this create a new Java project and see what that .profile file looks like).

这篇关于Eclipse Java Mercurial项目搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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