如何为Eclipse编写插件?

时间:2023-01-14 15:38:04

How can I start writing a plugin for Eclipse?

我怎样才能开始为Eclipse编写插件?

I've looked for documentation, but unfortunately there is very little or it's poor, so what articles can recommended?

我已经找了文档,但不幸的是,它很少或很差,所以可以推荐哪些文章?

5 个解决方案

#1


62  

There are some pretty good resources and tutorials on the main Eclipse and IBM's site. One of the best ways is to pick an open source plug-in that has some similar features to what you want to do and start to dissect it.

主Eclipse和IBM的站点上有一些非常好的资源和教程。最好的方法之一是选择一个开源插件,它具有与您想要做的类似的功能,并开始剖析它。

#2


19  

Eclipse has a pretty good "Your First Plug-in" tutorial. If it is confusing, I'm sure they would greatly appreciate your feedback. Keep in mind that Eclipse is essentially Java, so if you don't have a good grasp of Java go for general Java tutorials first, and then come back to Eclipse development.

Eclipse有一个非常好的“你的第一个插件”教程。如果它令人困惑,我相信他们会非常感谢您的反馈。请记住,Eclipse本质上是Java,因此如果您没有很好地掌握Java,请先阅读一般的Java教程,然后再回到Eclipse开发。

O'Reilly has two good Eclipse Plugin tutorials:

O'Reilly有两个很好的Eclipse插件教程:

They not only go through the simple code examples, but give you screen shots of the process since a lot of work is done through wizard type interface windows.

他们不仅通过简单的代码示例,而且还通过向导类型的界面窗口为您提供了大量工作的屏幕截图。

If these aren't helpful, perhaps you could be more specific as to what is difficult to follow.

如果这些没有帮助,也许您可​​以更具体地了解难以遵循的内容。

-Adam

-亚当

#3


3  

The best step-by-step that covers almost every aspect of plugin development is the book "Eclipse: Building Commercial Quality Plugins".

涵盖插件开发几乎所有方面的最佳步骤是“Eclipse:构建商业质量插件”一书。

It's available at most book shops and electronically at safari: http://safari.oreilly.com/9780321574435

它可以在大多数书店购买,也可以在野生动物园进行电子搜索:http://safari.oreilly.com/9780321574435

#4


1  

I found a great Eclipse plugin tutorial named Extending Eclipse - Plug-in Development Tutorial.

我发现了一个很棒的Eclipse插件教程,名为Extending Eclipse - Plug-in Development Tutorial。

#5


0  

I think a very good resource is also to look at the examples that are available via the new Plug-In Project wizard.

我认为一个非常好的资源也是通过新的Plug-In Project向导查看可用的示例。

Depending on what you want to provide with your plug-in, you can choose from editor plug-ins, view plug-ins, plug-ins that provide a property page (just to name a few) and see how they're built and what extension points they implement.

根据您希望为插件提供的内容,您可以选择编辑器插件,查看插件,提供属性页面的插件(仅举几例)并查看它们是如何构建的他们实施了哪些扩展点。

#1


62  

There are some pretty good resources and tutorials on the main Eclipse and IBM's site. One of the best ways is to pick an open source plug-in that has some similar features to what you want to do and start to dissect it.

主Eclipse和IBM的站点上有一些非常好的资源和教程。最好的方法之一是选择一个开源插件,它具有与您想要做的类似的功能,并开始剖析它。

#2


19  

Eclipse has a pretty good "Your First Plug-in" tutorial. If it is confusing, I'm sure they would greatly appreciate your feedback. Keep in mind that Eclipse is essentially Java, so if you don't have a good grasp of Java go for general Java tutorials first, and then come back to Eclipse development.

Eclipse有一个非常好的“你的第一个插件”教程。如果它令人困惑,我相信他们会非常感谢您的反馈。请记住,Eclipse本质上是Java,因此如果您没有很好地掌握Java,请先阅读一般的Java教程,然后再回到Eclipse开发。

O'Reilly has two good Eclipse Plugin tutorials:

O'Reilly有两个很好的Eclipse插件教程:

They not only go through the simple code examples, but give you screen shots of the process since a lot of work is done through wizard type interface windows.

他们不仅通过简单的代码示例,而且还通过向导类型的界面窗口为您提供了大量工作的屏幕截图。

If these aren't helpful, perhaps you could be more specific as to what is difficult to follow.

如果这些没有帮助,也许您可​​以更具体地了解难以遵循的内容。

-Adam

-亚当

#3


3  

The best step-by-step that covers almost every aspect of plugin development is the book "Eclipse: Building Commercial Quality Plugins".

涵盖插件开发几乎所有方面的最佳步骤是“Eclipse:构建商业质量插件”一书。

It's available at most book shops and electronically at safari: http://safari.oreilly.com/9780321574435

它可以在大多数书店购买,也可以在野生动物园进行电子搜索:http://safari.oreilly.com/9780321574435

#4


1  

I found a great Eclipse plugin tutorial named Extending Eclipse - Plug-in Development Tutorial.

我发现了一个很棒的Eclipse插件教程,名为Extending Eclipse - Plug-in Development Tutorial。

#5


0  

I think a very good resource is also to look at the examples that are available via the new Plug-In Project wizard.

我认为一个非常好的资源也是通过新的Plug-In Project向导查看可用的示例。

Depending on what you want to provide with your plug-in, you can choose from editor plug-ins, view plug-ins, plug-ins that provide a property page (just to name a few) and see how they're built and what extension points they implement.

根据您希望为插件提供的内容,您可以选择编辑器插件,查看插件,提供属性页面的插件(仅举几例)并查看它们是如何构建的他们实施了哪些扩展点。