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 already be done or not, this is meant to be a learning experience).
我已经决定,作为一个用于学习的宠物项目,我会创建一个新的Eclipse插件,对于给定的类,它接受所有私有成员名称并为其名称添加前缀(如果对我来说无关紧要)它已经可以完成,这意味着学习经验)。
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?
我从来没有开发过Eclipse插件,我不知道从哪里开始。我是否需要为此开发安装一些应用程序?它是如何工作的?我从哪开始呢?
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.
我做了谷歌搜索,但我找到的所有教程和结果都很旧,并且引用了过时版本的Eclipse,所以我不确定它们是否仍然准确。
2 个解决方案
#1
2
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.
Vogella的Eclipse RCP教程是最新的(eclipse3.5),但对于RCP(富客户端平台)。它附带了一个同样最新的插件开发教程。
alt text http://www.vogella.de/articles/EclipsePlugIn/images/eclipseplugin20.gif
alt text http://www.vogella.de/articles/EclipsePlugIn/images/eclipseplugin20.gif
Follow that last tutorial and you will have a real good introduction in this Eclipse Plugin development topic.
按照上一个教程,您将在此Eclipse插件开发主题中有一个非常好的介绍。
Note: for AST-related plugins (Abstract Syntax Tree), the resources are older but still accurate:
注意:对于与AST相关的插件(抽象语法树),资源较旧但仍然准确:
See Extract all string from a java project.
请参阅从java项目中提取所有字符串。
#2
1
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.
我建议从插件开发环境(PDE)中包含的插件示例开始,其中一些发行版包含它,因此请查找PDE。由于eclipse插件是OSGi捆绑包,如果你还不熟悉它们可能需要一些时间,但这是值得的。
For details check the following documenations
有关详细信息,请查看以下文档
- Platform Plug-in Developer Guide
-
JDT插件开发人员指南
-
JDT Plug-in Developer Guide 3.1 as PDF
JDT插件开发人员指南3.1为PDF
平台插件开发人员指南
#1
2
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.
Vogella的Eclipse RCP教程是最新的(eclipse3.5),但对于RCP(富客户端平台)。它附带了一个同样最新的插件开发教程。
alt text http://www.vogella.de/articles/EclipsePlugIn/images/eclipseplugin20.gif
alt text http://www.vogella.de/articles/EclipsePlugIn/images/eclipseplugin20.gif
Follow that last tutorial and you will have a real good introduction in this Eclipse Plugin development topic.
按照上一个教程,您将在此Eclipse插件开发主题中有一个非常好的介绍。
Note: for AST-related plugins (Abstract Syntax Tree), the resources are older but still accurate:
注意:对于与AST相关的插件(抽象语法树),资源较旧但仍然准确:
See Extract all string from a java project.
请参阅从java项目中提取所有字符串。
#2
1
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.
我建议从插件开发环境(PDE)中包含的插件示例开始,其中一些发行版包含它,因此请查找PDE。由于eclipse插件是OSGi捆绑包,如果你还不熟悉它们可能需要一些时间,但这是值得的。
For details check the following documenations
有关详细信息,请查看以下文档
- Platform Plug-in Developer Guide
-
JDT插件开发人员指南
-
JDT Plug-in Developer Guide 3.1 as PDF
JDT插件开发人员指南3.1为PDF
平台插件开发人员指南