工具使用说明-04-eclipse优化
2014-02-21 10:55
337 查看
写在前面:如有错误,请评论或发邮箱至mavshuang@gmail.com,期待与大家交流!
说明:Eclipse 是一个开放源代码的、基于Java的可扩展开发平台。就其本身而言,它只是一个框架和一组服务,用于通过插件组件构建开发环境。幸运的是,Eclipse
附带了一个标准的插件集,包括Java开发工具(Java Development Kit,JDK),该款工具是Java开发人员必备工具之一,将Eclipse配置信息显示如下所示:
修改红色框内内容如下所示:
本人配置文件如下所示:
[html] view
plaincopy
struts2:
D:\Users\dtdFiles\struts2.3\struts-2.3.dtd
http://struts.apache.org/dtds/struts-2.3.dtd
D:\Users\dtdFiles\struts2.3\xwork-validator-1.0.2.dtd
http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd
hibernate3:
D:\Users\dtdFiles\hibernate3\hibernate-configuration-3.0.dtd
http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd
D:\Users\dtdFiles\hibernate3\hibernate-mapping-3.0.dtd
http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd
spring3:
D:\Users\dtdFiles\spring\beans\spring-beans-3.0.xsd
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
D:\Users\dtdFiles\spring\context\spring-context-3.0.xsd
http://www.springframework.org/schema/context/spring-context-3.0.xsd
D:\Users\dtdFiles\spring\tx\spring-tx-3.0.xsd
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
D:\Users\dtdFiles\spring\aop\spring-aop-3.0.xsd
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
D:\Users\dtdFiles\spring\mvc\spring-mvc-3.0.xsd
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
jbpm4.4
D:\Users\dtdFiles\jbpm\jpdl-4.4.xsd
http://jbpm.org/4.4/jpdl
MyBatis3
D:\Users\dtdFiles\mybatis\mybatis-3-config.dtd
http://mybatis.org/dtd/mybatis-3-config.dtd
D:\Users\dtdFiles\mybatis\mybatis-3-mapper.dtd
http://mybatis.org/dtd/mybatis-3-mapper.dtd
取消“Enable spell checking”选项,便不需要进行拼写检查
[java] view
plaincopy
设置”Comments“中各个选项:
文件(Files)注释标签:
/**
* @Title: ${file_name}
* @Package ${package_name}
* @Description: ${todo}
* @Author:mavs
* @Create Date: ${date} ${time}
* @Version:
*/
类型(Types)注释标签(类的注释):
/**
* @ClassName: ${type_name}
* @Description: ${todo}
* @Author:mavs
* @Create Date:${date} ${time}
*
* ${tags}
*/
字段(Fields)注释标签:
/**
* @Fields ${field}:${todo}
*/
构造函数(Constructor)标签:
/**
* <p>Title: </p>
* <p>Description: </p>
* ${tags}
*/
方法(Constructor & Methods)标签:
/**
* @Title: ${enclosing_method}
* @Description: ${todo}
* @Parmaters: ${tags}
* @Return: ${return_type}
* @Throws:
*/
覆盖方法(Overriding Methods)标签:
/* (非 Javadoc)
* <p>Title: ${enclosing_method}</p>
* <p>Description: </p>
* ${tags}
* ${see_to_overridden}
*/
代表方法(Delegate Methods)标签:
/**
* ${tags}
* ${see_to_target}
*/
getter方法标签:
/**
* @return ${bare_field_name}
*/
setter方法标签:
/**
* @param ${param} 要设置的 ${bare_field_name}
*/
To be continued.....
说明:Eclipse 是一个开放源代码的、基于Java的可扩展开发平台。就其本身而言,它只是一个框架和一组服务,用于通过插件组件构建开发环境。幸运的是,Eclipse
附带了一个标准的插件集,包括Java开发工具(Java Development Kit,JDK),该款工具是Java开发人员必备工具之一,将Eclipse配置信息显示如下所示:
0、配置eclipse启动文件
修改红色框内内容如下所示:
1、设置字体
2、Validation
如果你需要验证某个文件的时候,我们可以单独去验证它。
3、Content Assistant
3.1、Java代码中
在红色方框内输入”a-z“26个字母;
3.2、JavaScript代码中
由于只能输入三个字母只能将其导出后修改后再将其导入到eclipse中
4、配置DTD约束文件
当编写框架配置文件时不能自动提示,便将对应的配置文件集成进eclipse中,步骤如下所示:本人配置文件如下所示:
[html] view
plaincopy
struts2:
D:\Users\dtdFiles\struts2.3\struts-2.3.dtd
http://struts.apache.org/dtds/struts-2.3.dtd
D:\Users\dtdFiles\struts2.3\xwork-validator-1.0.2.dtd
http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd
hibernate3:
D:\Users\dtdFiles\hibernate3\hibernate-configuration-3.0.dtd
http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd
D:\Users\dtdFiles\hibernate3\hibernate-mapping-3.0.dtd
http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd
spring3:
D:\Users\dtdFiles\spring\beans\spring-beans-3.0.xsd
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
D:\Users\dtdFiles\spring\context\spring-context-3.0.xsd
http://www.springframework.org/schema/context/spring-context-3.0.xsd
D:\Users\dtdFiles\spring\tx\spring-tx-3.0.xsd
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
D:\Users\dtdFiles\spring\aop\spring-aop-3.0.xsd
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
D:\Users\dtdFiles\spring\mvc\spring-mvc-3.0.xsd
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
jbpm4.4
D:\Users\dtdFiles\jbpm\jpdl-4.4.xsd
http://jbpm.org/4.4/jpdl
MyBatis3
D:\Users\dtdFiles\mybatis\mybatis-3-config.dtd
http://mybatis.org/dtd/mybatis-3-config.dtd
D:\Users\dtdFiles\mybatis\mybatis-3-mapper.dtd
http://mybatis.org/dtd/mybatis-3-mapper.dtd
5、设置自定义快捷键
编号 | 快捷键 | 说明 |
1 | Alt + 0 | 打开View视图 |
2 | Alt + 1 | 打开Package视图 (通过输入 Show view(Package Explore)) |
3 | Alt + 2 | 打开Console视图(通过输入 Show view(Console)) |
4 | Alt + 3 | 打开Outline视图(通过输入 Show view(Outline)) |
5 | Alt + 4 | 打开JUnit视图(通过输入 Show view(JUnit)) |
6 | Alt + 5 | 打开Server视图(通过输入 Show view(Servers)) |
7 | Alt + P | 打开Properties视图(通过输入 Show view(Properties)) |
8 | Ctrl+Tab | 切换到下一页面 |
9 | Ctrl+Alt+P | 切换到下一视图 |
6、Spelling检查
取消“Enable spell checking”选项,便不需要进行拼写检查
7、设置注释模板
[java] view
plaincopy
设置”Comments“中各个选项:
文件(Files)注释标签:
/**
* @Title: ${file_name}
* @Package ${package_name}
* @Description: ${todo}
* @Author:mavs
* @Create Date: ${date} ${time}
* @Version:
*/
类型(Types)注释标签(类的注释):
/**
* @ClassName: ${type_name}
* @Description: ${todo}
* @Author:mavs
* @Create Date:${date} ${time}
*
* ${tags}
*/
字段(Fields)注释标签:
/**
* @Fields ${field}:${todo}
*/
构造函数(Constructor)标签:
/**
* <p>Title: </p>
* <p>Description: </p>
* ${tags}
*/
方法(Constructor & Methods)标签:
/**
* @Title: ${enclosing_method}
* @Description: ${todo}
* @Parmaters: ${tags}
* @Return: ${return_type}
* @Throws:
*/
覆盖方法(Overriding Methods)标签:
/* (非 Javadoc)
* <p>Title: ${enclosing_method}</p>
* <p>Description: </p>
* ${tags}
* ${see_to_overridden}
*/
代表方法(Delegate Methods)标签:
/**
* ${tags}
* ${see_to_target}
*/
getter方法标签:
/**
* @return ${bare_field_name}
*/
setter方法标签:
/**
* @param ${param} 要设置的 ${bare_field_name}
*/
8、设置工作区间的默认编码集
To be continued.....
相关文章推荐
- 通用Excel导入工具V1.0使用说明
- linux性能监控工具collectl安装及简要使用说明
- cocoshop工具的使用说明!!!
- Android:apk编译工具_baksmali和smali的使用说明和介绍
- 查看DLL工具Depends的使用说明
- 代码生成工具dgen使用说明
- 常用工具说明--Maven使用说明
- Linux下安全审计工具 lynis 使用说明
- Fiddler工具使用说明
- STM32代码自动生成工具使用说明
- Oracle 高速批量数据加载工具sql*loader使用说明
- Mia_PDF_Tool v1.0 工具软件使用说明
- mongodb 查看工具rockmongo 安装使用说明
- 代码说明生成工具doxygen的使用
- Google Code 中使用svn工具说明
- 使用mysqldump工具备份还原Mysql数据库实例及参数详细说明
- 静态分析工具PMD使用说明
- http压力测试工具及使用说明
- 代码自动生成工具MyGeneration使用说明