Search code examples
eclipseeclipse-plugineclipse-rcpeclipse-cdtmenubar

Restore Eclipse Welcome page via plugin


I have got a customized eclipse installation which doesn't contain Help -> Welcome option in it. Some plugin have hidden it from the menu.

Is there a way that I can get that option back by overriding some plugin or contribute to menu using org.eclipse.ui.menus extension point?

So far I have tried following by extending WorkbenchWindowAdvisor to make all menu's visible but this is effective for only the menus that are already there.

@Override
public void postWindowOpen() { 
    IWorkbenchWindow workbenchWindow =  PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    IContributionItem[] items = ((WorkbenchWindow)workbenchWindow).getMenuBarManager().getItems();
    for (IContributionItem item : items) {
            item.setVisible(false);
    }
}

The most likely plugin seems to be org.eclipse.ui.workbench


Solution

  • After a detailed debugging, there was a plugin in my installation which was using wrong productID in the org.eclipse.ui.intro extension, hence welcome page option was not visible.

       <extension
             point="org.eclipse.ui.intro">
          <introProductBinding
                introId="org.eclipse.ui.intro.universal"
                productId="com.xyz.ide">
          </introProductBinding>
       </extension>