I frequently had this problem and didn't find a solution yet: Whenever I write a new Eclipse RCP based application and include plugins from the Eclipse platform, I 'inherit' UI contributions from some of those plugins.

Most of this contributions (menu entries, keyboard shortcuts, property pages) are useful but sometimes I'd rather disabled some of these contributions, just because I really do not need them and they might confuse the users.

Does anyone know of the official or a practical way to disable/prohibit selected contributions in Eclipse RCP applications?
['https://Stackoverflow.com/questions/1415700', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/105224/']
The only method which comes close to do that would be:

[`IMenuService::removeContributionFactory()`](http://kickjava.com/src/org/eclipse/ui/menus/IMenuService.java.htm)

Paul Webster has been calling for a [`IMenuService::addOverride()`](http://wiki.eclipse.org/Menu_Contributions/RCP_removes_the_Project_menu) to change the visibility of the menu, preventing any contribution, but that idea has not been integrated yet.

You can see an example of removing a contribution in this [`org.eclipse.ui.tests.menus.MenuBuilder`](http://mail.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.tests/Eclipse%20UI%20Tests/org/eclipse/ui/tests/menus/MenuBuilder.java?view=co) class;

```
public static void removeMenuContribution() {
    if (!PlatformUI.isWorkbenchRunning()) {
        return;
    }
    IMenuService menuService = (IMenuService) PlatformUI.getWorkbench()
            .getService(IMenuService.class);
    if (menuService==null) {
        return;
    }
    menuService.removeContributionFactory(viewMenuAddition);
    viewMenuAddition = null;
    menuService.removeContributionFactory(viewToolbarAddition);
    viewMenuAddition = null;
}

```
Equinox transformations can also be used to supply XLST transformations that remove unwanted UI contributions.