eclipse中使用ctrl无法追踪函数

时间:2014-09-18 18:54:44   收藏:0   阅读:183

一直用eclipse中写项目,经常使用ctrl+左击函数名称来对函数进行追踪。今天突然发现这个功能没法使用了。上网查了下,说是要先检查一下项目的根目录中 .buildpath.buildpath 文件内容都一样文件是否存在 ,我看了下项目,还真没有,复制一个进来,发现还是不行。然后在看下 .project 文件需要修改

无法点击的项目中的 .project 文件内容如下 :

1

<?xml version="1.0" encoding="UTF-8"?>

<projectDescription>

<name>trunk</name>

<comment></comment>

<projects>

</projects>

<buildSpec>

</buildSpec>

<natures>

</natures>

</projectDescription>

而可以击的项目中的 .project 文件内容如下:

2

<?xml version="1.0" encoding="UTF-8"?>

<projectDescription>

<name>trunk</name>

<comment></comment>

<projects>

</projects>

<buildSpec>

<buildCommand>

<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>

<arguments>

</arguments>

</buildCommand>

<buildCommand>

<name>org.eclipse.wst.validation.validationbuilder</name>

<arguments>

</arguments>

</buildCommand>

<buildCommand>

<name>org.eclipse.dltk.core.scriptbuilder</name>

<arguments>

</arguments>

</buildCommand>

</buildSpec>

<natures>

<nature>org.eclipse.php.core.PHPNature</nature>

<nature>org.eclipse.wst.jsdt.core.jsNature</nature>

</natures>

</projectDescription>

找( 1 )、( 2 )的不同,然后把不能点击的项目根目下的 .project 文件修改过来即可。问题解决。

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!