Bug 305114 [CommonNavigator] ResourceSelectionUtil has been deprecated without public replacement
Public API class org.eclipse.ui.views.navigator.ResourceSelectionUtil has been deprecated in 3.5 with the hint to "use the Common Navigator Framework classes instead", but the CNF counterpart is internal.
bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/EditActionGroup.java
private DeleteResourceAction deleteAction;
	private PasteAction pasteAction;
	private TextActionHandler textActionHandler;
	private Shell shell;
	/**
	 * 
	 * @param aShell
	 */
	public EditActionGroup(Shell aShell) {
		shell = aShell;
		makeActions();
	}
	public void dispose() {
		if (clipboard != null) {
			clipboard.dispose();
			clipboard = null;
		}
		super.dispose();
	}
	public void fillContextMenu(IMenuManager menu) {
		IStructuredSelection selection = (IStructuredSelection) getContext().getSelection();
		boolean anyResourceSelected = !selection.isEmpty()
				&& ResourceSelectionUtil.allResourcesAreOfType(selection, IResource.PROJECT | IResource.FOLDER | IResource.FILE);
		copyAction.selectionChanged(selection);
		menu.appendToGroup(ICommonMenuConstants.GROUP_EDIT, copyAction);
		pasteAction.selectionChanged(selection);
		
		menu.appendToGroup(ICommonMenuConstants.GROUP_EDIT, pasteAction);
		if (anyResourceSelected) {
			deleteAction.selectionChanged(selection);