Bug 49099 Reduced Search menu does too much [search]
I200312180010 The reduced search menu preference (work in progress) does too much and therefore I cannot use it: Exmples: - select an interface (in outline or any other view where you already know it is an interface. Try to search for implementors ==> not possible. - same applies for fields: it is no longer possible to search for read/write access.
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);
	}	
}