Eclipse插件精選(轉貼)

 

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 作者郵件爲 [email protected], 沒有網站, 在 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 site Install the EditorList Plug-in from within Eclipse using the EditorList Install/Update site:
http://editorlist.sourceforge.net/site
Screenshot:
Aptana 
http://www.aptana.com/

JavaScript/Web IDE, 優點: 能編輯 HTML 裏面的 JavaScript, JS/HTML/CSS 語法提示(像 DreamWeaver), 代碼自動查錯, 免費, 開源. 個頭比較大. 用了一下, 感覺速度還行, 不需要建工程就可以編輯.

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章