if (selection.isEmpty()) {
MeclipseView.this.fillContextMenu(manager);
return;
}
TreeObject obj = (TreeObject) selection.getFirstElement();
manager.add(new Separator());
obj.fillContextMenu(manager);
}
});
Menu menu = menuMgr.createContextMenu(viewer.getControl());
viewer.getControl().setMenu(menu);