Menu menu = new Menu(shell, SWT.POP_UP);
MenuItem item = new MenuItem(menu, SWT.PUSH);
// Add the action item, which will remove the node from the tree if selected
item.setText(ACTION_REMOVE_MBEANNODE);
item.addListener(SWT.Selection, new Listener()
{
public void handleEvent(Event e)
{
removeManagedObject(parentNode, (ManagedBean) selectedNode.getManagedObject(), true);
_treeViewer.refresh();