Always use eclipse to write items, often using CTRL + Left-click function name to trace the function. Today suddenly found that this function is not available. On the internet to check, said to first check the root directory of the project . BuildPath(the contents of the. BuildPath file are the same ) whether the file exists , I looked at the project, really did not, copy one in, found or not. then look at the . Project file needs to be modified .
The contents of the . project file in the project that cannot be clicked are as follows :
( 1 )
<?xml version= "1.0" encoding= "UTF-8"?>
<projectDescription>
<name>trunk</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
The contents of the . Project file in the project that you can hit are as follows:
( 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>
Find the difference between ( 1 ), ( 2 ), and then Modify the . project file under the root of the item that cannot be clicked. Problem solving.
Use CTRL in eclipse to not track functions