Eclipse RCP Tutorial: Add a Popup Menu

The following are snapshots of every step involved when creating a popup menu by using PDE.


rcp-popup-menu-1

rcp-popup-menu-2

rcp-popup-menu-3

rcp-popup-menu-4

The most important part is the following xml file:
rcp-popup-menu-5

Below is the class created automatically.
rcp-popup-menu-8

rcp-popup-menu-6

When you run the plug-in project, the popup menu only will show for Navigator view. If you want to know how to make it shown in Project Explorer view, read the tutorial for creating popup menu when right clicking a file.

rcp-popup-menu-7

Category >> Rich Client Platform(RCP)  
If you want someone to read your code, please put the code inside <pre><code> and </code></pre> tags. For example:
<pre><code> 
String foo = "bar";
</code></pre>