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
fWriteAccessGroup.fillActionBars(actionBar);
		actionBar.setGlobalActionHandler(JdtActionConstants.FIND_OCCURRENCES_IN_FILE, fOccurrencesInFileAction);
	}
	
	/* 
	 * Method declared on ActionGroup.
	 */
	public void fillContextMenu(IMenuManager menu) {
		super.fillContextMenu(menu);
		IMenuManager target= menu;
		IMenuManager searchSubMenu= null;
		if (fEditor != null) {
			String groupName= SearchMessages.getString("group.search"); 
			searchSubMenu= new MenuManager(groupName, ITextEditorActionConstants.GROUP_FIND);
			searchSubMenu.add(new GroupMarker(ITextEditorActionConstants.GROUP_FIND));
			target= searchSubMenu;
		}
		fReferencesGroup.fillContextMenu(target);
		fDeclarationsGroup.fillContextMenu(target);
		fImplementorsGroup.fillContextMenu(target);
		fReadAccessGroup.fillContextMenu(target);
		fWriteAccessGroup.fillContextMenu(target);
		
		if (searchSubMenu != null) {
			searchSubMenu.add(new Separator());
			addAction(target, fOccurrencesInFileAction);
		} else {
			addAction(target, IContextMenuConstants.GROUP_SEARCH, fOccurrencesInFileAction);
		}