Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse plugin development for Eclipse

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 started to develop a plugin for Eclipse itself. Thanks.

like image 843
Raven Avatar asked Feb 28 '23 05:02

Raven


1 Answers

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.

http://www.vogella.com/articles/EclipsePlugIn/images/xeclipseideplugin40.png.pagespeed.ic.MhPsqStO7i.png

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

Contribution

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.

app model


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.

like image 52
VonC Avatar answered Mar 07 '23 02:03

VonC