為什么Eclipse中 按 F3 無效


通常是由於自己的 工程 建得不對, 沒有聲明為 JAVA 或 PHP 類型工程。

 

例如, PHP 工程的 .project 文件中的內容如果如下, F3 應該就可以起作用了。

 

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
 <name>projectName</name>
 <comment></comment>
 <projects>
 </projects>
 <buildSpec>
  <buildCommand>
   <name>org.eclipse.dltk.core.scriptbuilder</name>
   <arguments>
   </arguments>
  </buildCommand>
  <buildCommand>
   <name>org.eclipse.php.core.PhpIncrementalProjectBuilder</name>
   <arguments>
   </arguments>
  </buildCommand>
  <buildCommand>
   <name>org.eclipse.wst.validation.validationbuilder</name>
   <arguments>
   </arguments>
  </buildCommand>
 </buildSpec>
 <natures>
  <nature>org.eclipse.php.core.PHPNature</nature>
 </natures>
</projectDescription>

 

 

又例如,JAVA Spring Tomcat 項目的 .project 文件中的內容如下:

 

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
 <name>projectName</name>
 <comment></comment>
 <projects>
 </projects>
 <buildSpec>
  <buildCommand>
   <name>org.eclipse.jdt.core.javabuilder</name>
   <arguments>
   </arguments>
  </buildCommand>
  <buildCommand>
   <name>org.springframework.ide.eclipse.core.springbuilder</name>
   <arguments>
   </arguments>
  </buildCommand>
 </buildSpec>
 <natures>
  <nature>org.springframework.ide.eclipse.core.springnature</nature>
  <nature>org.eclipse.jdt.core.javanature</nature>
  <nature>com.sysdeo.eclipse.tomcat.tomcatnature</nature>
 </natures>
</projectDescription>



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM