Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you attach eclipse plugin development library sources to a project? [closed]

I am new to eclipse plugin development.

How can I get the source code for all eclipse plugin development libraries? Without the source code, it is hard to debug calls or look into the implementation.

like image 913
stefan bachert Avatar asked Apr 14 '13 14:04

stefan bachert


People also ask

Where is Plugin xml in Eclipse?

The plugin. xml file must reside in the root directory when the plugin. xml file is placed in an Enterprise JavaBeans Java™ archive (JAR) file or shared library JAR file.

What is plugin development in Java?

An Eclipse application consists of individual software components, called plug-ins. For example, the Eclipse Java IDE provides the functionality to develop Java applications via the JDT plug-ins. As Eclipse is build as an extensible framework, plug-ins can use and extend other plug-ins.


2 Answers

I refuse to download sources myself and attach them unless necessary. Eclipse does allow you to do this as it's shipped, the steps aren't too intuitive.

  • Help > Install new Software
  • Work with 'The Eclipse Project Updates' (not the main site!)
  • Install the following items
    • Eclipse RCP Plug-in Developer Resources
    • Eclipse PDE Plug-in Developer Resources
    • Eclipse Platform Plug-in Developer Resources
    • Equinox p2 Core Function Source
    • Eclipse JDT Plug-in Developer Resources

This might not be a comprehensive list but it's a work in progress for me. I'll try to keep this list updated every time I find something new because StackOverflow has way better SEO than my blog post :)

like image 89
javatarz Avatar answered Dec 05 '22 12:12

javatarz


For most plugins, it is enough to use the context menu Import -> As Binary plugin in the Plugins view of the Plugin Development Perspective. If you need this for more than one plugin, you can do it using a wizard and multi selection.

If you are new to Eclipse plugin development, it will be very helpful to read more tutorials on the linked page, as it has many pointers.

like image 27
Bananeweizen Avatar answered Dec 05 '22 12:12

Bananeweizen