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
paths= getPaths();
        assertTrue(contains(root.getPath(), getPaths(), null));
        return root;
    }
    
    protected IPackageFragmentRoot addToClasspath(IJavaElement element) throws CoreException, InvocationTargetException, InterruptedException {
        IPath[] paths= getPaths();
        assertFalse(contains(element.getPath(), paths, null));
        
        IPackageFragmentRoot root= (IPackageFragmentRoot)executeOperation(IClasspathInformationProvider.ADD_SEL_SF_TO_BP, element, getOutputFolderQueryInternal(fProject.getOutputLocation()), null, null, null);
        
        paths= getPaths();
        assertTrue(contains(element.getPath(), paths, null));
        return root;
    }
    
    protected IFolder includePackage() throws JavaModelException, CoreException, InvocationTargetException, InterruptedException {
        IPackageFragmentRoot root= addToClasspath(new Path(fNormalFolder));
        IFolder cpFolder= getFolderHandle(new Path(fNormalFolder));
        
        IFolder folder= getFolderHandle(cpFolder.getProjectRelativePath().append(fSubFolder));
        
        IClasspathEntry entry= root.getRawClasspathEntry();
        int before= entry.getInclusionPatterns().length;
        
        
        executeOperation(IClasspathInformationProvider.INCLUDE, folder, null, null, null, null);
        
        entry= root.getRawClasspathEntry();
        IPath[] inclusionPatterns= entry.getInclusionPatterns();