eclipsepluginseclipse-plugineclipse-pde

How to use the Project Path from the Project Explorer to develop my own plugin?


Heyho,

I'm trying to develop my own Eclipse Plugin. It should be visiable as a new entry in the PopupMenu from the Eclipse Project Explorer. I would like to right-click at the Project and execute a little bit of JavaCode and need the project path from the marked project. So how do i get the specific project path?


Solution

    1. How to add the popup menu see: Adding menus, toolbar and popup menus to the Eclipse IDE - Tutorial

    2. The project location can be computed via current selection: see e. g. source code of OpenManifestHandler, line 52..86 for details.

    3. IProject -> File: getRawLocation().makeAbsolute().toFile();