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
IPackageFragment excludedPackage= root.getPackageFragment(fSubFolder + "2");
        
        IClasspathEntry entry= root.getRawClasspathEntry();
        
        executeOperation(IClasspathInformationProvider.INCLUDE, includedPackage, null, null, null, null);
        executeOperation(IClasspathInformationProvider.EXCLUDE, excludedPackage, null, null, null, null);
        addToClasspath(folder.getProjectRelativePath().append(fSubFolder + "3"));
        IFolder subSrcFolder= getFolderHandle(folder.getProjectRelativePath().append(fSubFolder + "3"));
        int numberOnCP= fProject.getRawClasspath().length;
        
        IPackageFragmentRoot editedRoot= (IPackageFragmentRoot)executeOperation(IClasspathInformationProvider.RESET, root, null, null, null, null);
        
        entry= editedRoot.getRawClasspathEntry();
        assertTrue(entry.getInclusionPatterns().length == 0);
        
        assertTrue(entry.getExclusionPatterns().length == 1);
        assertTrue(contains(folder.getFullPath(), getPaths(), null));
        assertTrue(contains(subSrcFolder.getFullPath(), getPaths(), null));
        assertTrue(fProject.getRawClasspath().length == numberOnCP);
        assertTrue(editedRoot.getPath().equals(root.getPath()));
        
        validateClasspath();
    }
    
    
    public void testCreateOutputFolder() throws JavaModelException, CoreException, InvocationTargetException, InterruptedException {
        IPath oldOutputPath= fProject.getOutputLocation();
        IPath newOutputPath= new Path(oldOutputPath.toString() + "2");
        createOutputFolder(newOutputPath);