开发者

Eclipse plugin development for Eclipse

开发者 https://www.devze.com 2022-12-26 14:36 出处:网络
How do I start to develop a plugin for Eclipse? I need a tool which isn\'t out there yet for my further development... so my main concerns are:

How do I start to develop a plugin for Eclipse? I need a tool which isn't out there yet for my further development... so my main concerns are:

  • How to add a perspective?
  • How to add menu items?
  • How to add a view into the "Show Views" menu?
  • How to add to the preference pane?
  • How do I get information, like:
    • Where is the workspace?
    • Which files are open in the editor?
    • Which projects are collapsed / expanded in the left projects view?
    • .....
  • Which conventions (naming...) should I consider?
  • How to set up update site/deployment?

Can you give me some hints, links, tutorials, etc?

Don't get me wrong. I am using Eclipse RCP for developing standalone apps for quite some time, so I am familiar with the techniques, but I never st开发者_StackOverflow社区arted to develop a plugin for Eclipse itself. Thanks.


The simplest way is still to download and installed the RCP edition of eclipse (that you are using).

With it comes a series of project templates which will illustrate precisely the topics you want to explore, both for RCP standalone but also for Eclipse contribution itself.

Eclipse plugin development for Eclipse

See this article and its next part for instance to add contributions to eclipse.

Eclipse plugin development for Eclipse

One of the key innovations of e4 is the separation between the application model and the implementation of the application’s parts, such as view.

The application model can be extended using fragments.
A fragment is a small application model itself and defines elements which need to be added to the root application model. Fragments can add anything that can be part of the application model, for example handlers, menu items or even windows.

Eclipse plugin development for Eclipse


Regarding the default Eclipse Plugin Development Templates, which are in org.eclipse.pde.ui.templates, Mr_and_Mrs_D reports in the coments:

They are in New Project > Plug-in Project (give it a name !) > ...Next > Templates.
They are present to the Eclipse IDE for Eclipse Committers - and they belong indeed to org.eclipse.pde.ui.templates plugin.

0

精彩评论

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

关注公众号