zoukankan      html  css  js  c++  java
  • 转:为什么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>

  • 相关阅读:
    linux服务器网络配置
    全面了解linux服务器
    centos selinux学习记录
    centos7使用samba共享文件
    centos7修改yum下载源为阿里源
    ubuntu14.04使用samba共享文件
    计算两个经纬度之间的距离(python算法)
    awk中的冒泡排序
    linux awk时间计算脚本
    linux shell中FS、OFS、RS、ORS图解
  • 原文地址:https://www.cnblogs.com/youxin/p/3861102.html
Copyright © 2011-2022 走看看