peter9

为什么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>


发表于 2012-02-21 14:20  站在高处眺望  阅读(3273)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-12-21
  • 2021-10-30
  • 2022-03-07
  • 2021-09-05
  • 2021-12-09
  • 2022-01-17
  • 2021-10-07
  • 2021-10-08
猜你喜欢
  • 2021-12-19
  • 2022-02-08
  • 2022-01-27
  • 2021-12-31
  • 2021-12-02
  • 2021-08-30
  • 2021-11-04
相关资源
相似解决方案