Bug 47875 Java search: too many cascading menus
- remove everything except reference. Inline reference in main menu - make it work in progress (per default enabled)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/JavaSearchActionGroup.java
if (searchSubMenu != null && searchSubMenu.getItems().length > 2) {		
			menu.appendToGroup(ITextEditorActionConstants.GROUP_FIND, searchSubMenu);
		}
	}	
	/* 
	 * Method declared on ActionGroup.
	 */
	public void dispose() {
		fReferencesGroup.dispose();
		fDeclarationsGroup.dispose();
		fImplementorsGroup.dispose();
		fReadAccessGroup.dispose();
		fWriteAccessGroup.dispose();
		if (fOccurrencesInFileAction != null)
			fSite.getSelectionProvider().removeSelectionChangedListener(fOccurrencesInFileAction);
		super.dispose();
	}
	
	private void addAction(IMenuManager manager, IAction action) {
		if (action != null && action.isEnabled())
			manager.add(action);
	}
	
	private void addAction(IMenuManager manager, String group, IAction action) {
		if (action != null && action.isEnabled())
			manager.appendToGroup(group, action);
	}	
}