Bug 86377 'remove from build path' not working for class folders
Add as class folder to a project, a package folder from an other project. Select the class folder node and try to remove it from the build path using the context menu action Build Path>Remove from Build Path. The class folder is no removed and the selection in moved to the package in the other project.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/BuildActionSelectionContext.java
fTypes= types;
			} catch (JavaModelException e) {
				JavaPlugin.log(e);
			}
		}
	}
	
	/**
	 * Get the Java project from the first element in the provided selection.
	 * 
	 * @param selection the selection containing a list of elements 
	 * @return the Java project of the first element of the selection, or 
	 * <code>null</code> if the selection is empty or no Java project could 
	 * be found.
	 */
	private IJavaProject getJavaProjectFromSelection(IStructuredSelection selection) {
		if (selection.isEmpty())
			return null;
		Object element= selection.getFirstElement();
		return getJavaProjectFromSelectedElement(element);
	}
	/**
	 * For a given element, try to get it's Java project
	 * 
	 * @param element the element to get the Java project from
	 * 
	 * @return the Java project of the provided element, or 
	 * <code>null</code> if no Java project could be found.
	 */
	private IJavaProject getJavaProjectFromSelectedElement(Object element) {