Eclipse 插件精选介绍(转)

 BeanSoft's Java Blog

http://www.blogjava.net/beansoft/archive/2006/11/22/82765.html

 

Eclipse 插件精选介绍

本文将会持续更新中.

找个好插件真的很不容易哦.... 这里只介绍一些个头小, 功能强悍的插件. 向您保证: 我没用过的插件基本上我就不介绍.

 



Eclipse插件之EasyExplorer http://dev2dev.bea.com.cn/bbsdoc/20060124184.html 


能够在 Eclipse 里面打开资源管理器来浏览当前选中的文件.
可以在选项里面输入命令:

explorer.exe /n,/e,{0}
来打开一个显示树和文件夹内容的浏览窗口.

通过对以上explorer.exe的参数分析,我们可能会有个希望就是实现既显示左边的文件树,又同时右边也定位到的选定的文件或文件夹上面。
那应当是设置为:explorer.exe /e,/select {0},不过这件EasyExplore帮你打开的只是定位在文件夹上面,而不是相应的文件上面。

问题提出:
  如果你经常需要在Eclipse里打开相关资源文件所在的文件夹,比较麻烦,要右键,属性,在Location一栏中把所在的文件夹拷贝一下,然后再去资源管理器里输入这个路径,回车,打开它。

解决方法:
  用EasyExplorer插件,有了这个插件就可以很方便地打开资源文件所在的文件夹了


Eclipse插件之Implementors http://dev2dev.bea.com.cn/bbsdoc/20060124188.html

问题提出:
  如果你想看看某个类或者方法的实现,一般是Ctrl + 鼠标左键,单击即可以打开这个类或者方法的具体实现代码。但是如果碰到接口时,只是到达接口而已,不能到达具体的实现类里。

解决方法:利用Eclipse的Implementors插件。
  当追踪方法代码时,Eclipse默认是转到方法的接口类,而接口中是只有方法名称没有具体的实现代码,此插件提供了追踪到具体实现类的实现代码的功能。


JadClipse http://jadclipse.sourceforge.net/wiki/index.php/Main_Page

JadClipse 可以在 Eclipse 里方便的反编译 class 文件. 用途: 反编译前同事带走了源码但是尚未混淆的类文件; 反编译找不到源码的类文件; 研究编译器原理; crack, hack, etc. 它可以讲结果在 Eclipse 里显示出来, 彩色高亮, 并且显示方法大纲. 需要 Jad.

JadClipse is a plug-in that seamlessly integrates Jad (the fast Java decompiler) with Eclipse.

Normally, when opening a class file the Class File Viewer will show a brief API outline of the class. If you install this plug-in, however, the Class File Viewer will be replaced with the JadClipse Class File Viewer that shows the decompiled source of the class. This task is accomplished by decompiling the corresponding class file in the background using Jad. Normal Java syntax highlighting as well as the Outline View are supported.


Eclipse Tomcat 插件中文版(Sysdeo) Final http://www.sysdeo.com/eclipse/tomcatplugin

可以在 Eclipse 里方便的在 Tomcat 服务器上启动,停止,发布/更新 Web 应用的一个插件. 有点做广告的嫌疑, 您可以自己去下载英文原始版本. 下面是我的广告:

原始版本已经由 3.1beta 更新为 3.1 final,
相应的本次更新的是 tomcatPluginV31.zip, 本人测试可以运行在 Eclipse 3.1 下, 但在 3.2 下无法新建 Tomcat 工程, 但是可以启动/停止 Tomcat.

这个插件可以让您无需离开 Eclipse 就可以进行 Tomcat 的启动, 停止, 发布, 重新载入 Web 应用, 十分方便.
截图: http://gro.clinux.org/frs/download.php/1318/tomcatPlugin.gif
下载: http://download.gro.clinux.org/beansoft/tomcatPluginV31.zip




JSEclipse http://www.interaktonline.com/Products/Eclipse/JSEclipse/Overview/

个人使用免费的 Eclipse  JS 文件编辑器, 支持 Outline(大纲), 能识别内置对象等复杂语法, 支持显示 JSDoc 注释, JSDoc, 方法提示, 语法错误检查, 是个人感觉目前最好的 JS 文件编辑器之一.

Featured Flash movies

 

Library support Code templates Code Completion
Library support Code templates Code Completion


LocalizationEditor

此 LocalizationEditor 作者邮件为 didier@ieee.org, 没有网站, 在 Eclipse 2.1 的时候他的这个插件就开发出来了. 之后虽然我的 Eclipse 已经升级到了3.2, 这个插件依然可以用, 实在是难能可贵啊. 个头也比较小. 它的功能包括: 隐藏未翻译词条, 隐藏已翻译词条, 对比翻译等等. 下载:

LocalizationEditor.zip 222KB
截屏: http://www.blogjava.net/images/blogjava_net/beansoft/17648/o_LocalizationEditorWorkbench.png



J15
A JDK 1.5 migration Eclipse plug-in
帮助将代码转换为 JDK 5 风格的插件, 对新学 JDK 5 的时候写代码有帮助(注: 未安装测试过).

 


log4eclipse
测试通过的版本: Eclipse 3.1, 3.2
将 Log4j 输出到 Eclipse 视图中的一个表格中去, 便于浏览, 也可以通过网络方式将服务器的日志传送到eclipse中查看, 因为它兼容的就是标准的 SocketAppender. 示例:

log4j 配置文件:

log4j-config.xml

<? xml version="1.0" encoding="UTF-8"  ?>
<! DOCTYPE log4j:configuration SYSTEM "log4j.dtd" >


< log4j:configuration  xmlns:log4j ="http://jakarta.apache.org/log4j/" >
  
< appender  name ="ConsoleAppender"  class ="org.apache.log4j.ConsoleAppender" >
  
    
< layout  class ="org.apache.log4j.PatternLayout" >
      
< param  name ="ConversionPattern"  value ="%d{[HH:mm:ss,SSS]} %5p (%F:%L) - %m%n" />
    
</ layout >

  
</ appender >

    
< appender  name ="socket"  class ="org.apache.log4j.net.SocketAppender" >
        
< param  name ="RemoteHost"  value ="localhost" />
        
< param  name ="Port"  value ="4445" />
        
< layout  class ="org.apache.log4j.PatternLayout" >
          
< param  name ="ConversionPattern"  value ="%d{[HH:mm:ss,SSS]} %5p (%F:%L) - %m%n" />
        
</ layout >         
    
</ appender >
    
    
< root >
        
< priority  value ="ALL" />

        
< appender-ref  ref ="socket" />
        
< appender-ref  ref ="ConsoleAppender" />
    
</ root >
</ log4j:configuration >

Java 代码:

import  org.apache.log4j.Logger;
import  org.apache.log4j.xml.DOMConfigurator;

/*
 * @(#)LogTest.java 1.00 2006-4-3
 *
 * Copyright 2006 BeanSoft Studio. All rights reserved.
 * PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 
*/

public   class  LogTest  {
    
/**
     * Logger for this class
     
*/

    
private static final Logger logger = Logger.getLogger(LogTest.class);

    
public LogTest() {
        DOMConfigurator.configure(getClass().getResource(
"log4j-config.xml"));

        logger.debug(
"debug");
        logger.info(
"info");
        logger.warn(
"warn");
        logger.error(
"error");
        logger.fatal(
"fatal"new Throwable("Bea Weblogic Down!"));
    }


    
/**
     * 
@param args
     
*/

    
public static void main(String[] args) {
        
new LogTest();
    }


}







log4e http://log4e.jayefem.de/index.php/Main_Page

虽然名字很相似, 但是这个却是个地道的 code 帮助工具. 帮助自动生成 Log4j/Logging API 代码的 Eclipse 插件, 例如在类代码中点右键可以显示"Insert Logger for this Class", 不过发现有的时候不是太稳定, 例如替换 System.out 代码为 log4j 代码的时候就Eclipse死掉了, 不知道最新版本是否还有这个问题. 有免费版本可以下载使用.
截屏:



MemoryManager plugin for Eclipse http://cloudgarden.com/memorymanager/

能够再Eclipse中监控当前的 Java 进程内存占用情况, 也可以强制进行垃圾收集(就像我们公司的 Weblogic 集群经常要做的 Force GC 一样), 如果发现数字经常到达上限, 就该考虑修改你的 Eclipse 启动参数了. 方法是在 Eclipse 目录下有个 eclipse.ini 文件, 修改这个文件的内容即可. 可以参考这里: Eclipse 启动运行速度调优(转载) 这个插件在 Eclipse 2.1 和 3.2 上都运行的很 OK.

Cloudgarden's MemoryManager is a small plugin for IBM's Eclipse Java IDE, which displays the current memory usage of Eclipse (letting you know when Eclipse is close to using up all it's memory allowance), and automatically invokes garbage collection when deemed necessary by a simple but effective algorithm (see below), thus preventing or reducing times of forced inactivity while the Eclipse JVM cleans up it's virtual memory space.

 






EditorList Plug-in provides a view that displays Eclipse's editors in a list for improved editor management. 能显示一个视图, 列出来所有打开的文件列表, 感觉比那个自带的下拉要方便的多了, 因为默认能显示的文件个数实在是太有限了! Eclipse 3.2 测试 ready.
The current version of the EditorList Plug-in is 1.0.7, released Aug. 4, 2005.
 
Get the EditorList Plug-in
SourceForge Project
Download the plug-in and participate in the project development
Install/Update siteInstall the EditorList Plug-in from within Eclipse using the EditorList Install/Update site:
http://editorlist.sourceforge.net/site


Aptana 

The Web IDE
Aptana is a robust, JavaScript-focused IDE for building dynamic web applications. Highlights include the following features:
  • Code Assist on JavaScript, HTML, and CSS languages, including your own JavaScript functions
  • Outliner that gives a snapshot view of your JavaScript, HTML, and CSS code structure
  • NEW: FTP/SFTP uploading, downloading and synchronization
  • NEW: JavaScript debugger to troubleshoot your code
  • Error and warning notification for your code
  • Support for Aptana UI customization and extensions
  • Cross-platform support
  • Free and open source licensed under the Eclipse Public License, v1.0.






主页地址:http://www.aptana.com/
下载安装版本: http://www.web20.com/downloads/current/Windows/VM/Aptana_IDE_Setup.exe
Eclipse插件下载:  http://www.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration


Merve Tomcat Launcher Eclipse Plug-In http://merve.sourceforge.net/
从此不再需要辛辛苦苦配置 Tomcat 才能测试自己的 Tomcat 应用了... 因为它自带了一个嵌入式的 Tomcat 5.5.
Merve is an Eclipse Plug-In for running web applications with Apache Tomcat.

Merve includes already Tomcat Embedded.
Alternatively use your own preinstalled Tomcat version.

Merve supports and is capable to startup:

  • Apache Tomcat 5.0.x
  • Apache Tomcat 5.5.x

 Support for Apache Tomcat 4.1.x is in development.

 

Supported Eclipse versions:

  • Eclipse 3.0
  • Eclipse 3.1
  • Eclipse 3.2

用法: Run 的时候选择对话框, 然后选择Merve Tomcat Launcher,再里面设置后启动即可.



Jigloo http://cloudgarden.com/jigloo/index.html
能识别大多数的 FormBuilder 创建的 GUI, 例如 JBuilder 等, 运行速度比较快, 比 Visual Editor 好用. 可以编辑 AWT,Swing/SWT 的界面. 个人用免费, 商用需收费.

Note: Jigloo is free for non-commercial use, but purchase of a Professional License is required for commercial use (after successfully evaluating Jigloo).

Support: Eclipse 3.1, 3.2, 3.3

Screenshot:
http://www.aptana.com/

JavaScript/Web IDE, 优点: 能编辑 HTML 里面的 JavaScript, JS/HTML/CSS 语法提示(像 DreamWeaver), 代码自动查错, 免费, 开源. 个头比较大. 用了一下, 感觉速度还行, 不需要建工程就可以编辑.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值