开发者

How to create an eclipse plug-in?

I've decided that as a pet project meant for learning, I would create a new Eclipse plug-in that, for a given class, takes all private member names and adds a prefix to their name (it doesn't matter to me if it can alread开发者_JAVA百科y be done or not, this is meant to be a learning experience).

I have never developed an Eclipse plug-in and I'm not sure where to begin. Do I need to install some application for this development? How does it work? Where do I begin?

I did a Google search but all the tutorials and results I found were old and referred to antiquated versions of Eclipse, so I'm not sure if they're still accurate.


The Vogella's Eclipse RCP tutorial is quite up-to-date (eclipse3.5), but for RCP (Rich Client Platform).
It comes with an equally up-to-date Plugin Development tutorial.

How to create an eclipse plug-in?


(source: vogella.de)

Follow that last tutorial and you will have a real good introduction in this Eclipse Plugin development topic.


Note: for AST-related plugins (Abstract Syntax Tree), the resources are older but still accurate:

See Extract all string from a java project.


I would recommend to start with an plugin example included in the Plug-in Development Environment (PDE) some of the distributions contain it, so look for PDE. Since eclipse plugins are OSGi bundles it might take some time if you're not yet familiar with them, but it is worth.

For details check the following documenations

  • Platform Plug-in Developer Guide
  • JDT Plug-in Developer Guide

  • JDT Plug-in Developer Guide 3.1 as PDF

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜