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
}
	
	public void init(IStructuredSelection selection) {
		if (selection == null || !selection.equals(fSelection)) {
			initContextValues(selection);
		}
	}
	
	private void initContextValues(IStructuredSelection selection) {
		fSelection= selection;
		fJavaProject= null;
		fElements= Collections.EMPTY_LIST;
		fTypes= new int[0];
		
		IJavaProject project= getJavaProjectFromSelection(selection);
		if (project != null && project.exists()) {
			List elements= selection.toList();
			try {
				int[] types= new int[elements.size()];
				for (int i= 0; i < elements.size(); i++) {
					Object curr= elements.get(i);
					if (i > 0 && !project.equals(getJavaProjectFromSelectedElement(curr))) {
						return;
					}
					
					types[i]= DialogPackageExplorerActionGroup.getType(elements.get(i), project);
				}
				
				fJavaProject= project;
				fElements= elements;