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
public JavaSearchActionGroup(IViewPart part) {
		this(part.getViewSite());
		fOccurrencesInFileAction= new FindOccurrencesInFileAction(part);
		part.getViewSite().getSelectionProvider().addSelectionChangedListener(fOccurrencesInFileAction);
	}
	
	/**
	 * Creates a new <code>JavaSearchActionGroup</code>. The group 
	 * requires that the selection provided by the page's selection provider 
	 * is of type <code>org.eclipse.jface.viewers.IStructuredSelection</code>.
	 * 
	 * @param page the page that owns this action group
	 */
	public JavaSearchActionGroup(Page page) {
		this(page.getSite());
		fOccurrencesInFileAction= new FindOccurrencesInFileAction(page);
		page.getSite().getSelectionProvider().addSelectionChangedListener(fOccurrencesInFileAction);
	}
	/**
	 * Note: This constructor is for internal use only. Clients should not call this constructor.
	 */
	public JavaSearchActionGroup(JavaEditor editor) {
		Assert.isNotNull(editor);
		fEditor= editor;
		fSite= fEditor.getSite();
		
		fReferencesGroup= new ReferencesSearchGroup(fEditor);
		fReadAccessGroup= new ReadReferencesSearchGroup(fEditor);
		fWriteAccessGroup= new WriteReferencesSearchGroup(fEditor);
		fDeclarationsGroup= new DeclarationsSearchGroup(fEditor);