Bug 8581 Switch J Search to StructuredContentProvider
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchSubGroup.java
public static final String GROUP_ID= IContextMenuConstants.GROUP_SEARCH;
	abstract protected ElementSearchAction[] getActions();
	
	abstract protected String getName();
	
	public void fill(IMenuManager manager, GroupContext context) {
		MenuManager javaSearchMM= new MenuManager(getName(), GROUP_ID);
		ElementSearchAction[] actions= getActions();
		for (int i= 0; i < actions.length; i++) {
			ElementSearchAction action= actions[i];
			if (action.canOperateOn(context.getSelection()))
				javaSearchMM.add(action);
		}
		
		if (!javaSearchMM.isEmpty())
			manager.add(javaSearchMM);
	}
	public MenuManager getMenuManagerForGroup(boolean isTextSelectionEmpty) {
		MenuManager javaSearchMM= new MenuManager(getName(), GROUP_ID); 
		ElementSearchAction[] actions= getActions();
		if (!isTextSelectionEmpty) {
			for (int i= 0; i < actions.length; i++)
				javaSearchMM.add(actions[i]);
		}
		return javaSearchMM;
	}
}