Bug 98472 New project wizard: second page remove from class path should ask for removal of folder when linked
RC1 - create a new project - switch to the second page - link in additional source observe: there is no way to unlink the addtional source We should offer to unlink the folder when the folder is removed from the build path again.
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/dialogs/NewProjectWizardTest.java
assertFalse(ClasspathModifier.getClasspathEntryFor(entry.getPath(), fProject, IClasspathEntry.CPE_CONTAINER) == null);
        
        validateClasspath();
    }
    
    public void testRemoveFromCP() throws JavaModelException, CoreException, InvocationTargetException, InterruptedException {
        
        int before= fProject.getRawClasspath().length;
        IPackageFragmentRoot root= addToClasspath(new Path(fNormalFolder));
        
        
        IFolder folder= (IFolder)executeOperation(IClasspathInformationProvider.REMOVE_FROM_BP, root, null, null, null, null);
        
        assertTrue(folder.getFullPath().equals(root.getPath()));
        assertFalse(contains(new Path(fNormalFolder), getPaths(), null));
        int after= fProject.getRawClasspath().length;
        assertTrue(before == after);
        
        validateClasspath();
    }
    
    public void removeProjectFromCP() throws CoreException, InvocationTargetException, InterruptedException {
        IPath srcPath= new Path("src2");
        IPackageFragmentRoot root= addToClasspath(srcPath);
        IFolder normalFolder= getFolderHandle(new Path(fNormalFolder));
        IPackageFragmentRoot projectRoot= getProjectRoot(fProject.getCorrespondingResource());
        IPackageFragment fragment= projectRoot.createPackageFragment("", false, null);
        
        
        projectRoot= (IPackageFragmentRoot)executeOperation(IClasspathInformationProvider.ADD_SEL_SF_TO_BP, fProject, getOutputFolderQueryInternal(fProject.getOutputLocation()), null, null, null);