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/NewProjectWizardOperationTest.java
cpEntries.add(JavaCore.newSourceEntry(projectPath.append(srcPath)));
        cpEntries.addAll(Arrays.asList(PreferenceConstants.getDefaultJRELibrary()));
        IClasspathEntry[] entries= (IClasspathEntry[]) cpEntries.toArray(new IClasspathEntry[cpEntries.size()]);
        fProject.setRawClasspath(entries, null);
        
        
        IPackageFragmentRoot root= fProject.findPackageFragmentRoot(fProject.getPath().append(srcPath));
        IPackageFragment pack1= root.createPackageFragment("pack1", true, null);
        final IPackageFragment pack2= root.createPackageFragment("pack1.pack2", true, null);
        IPackageFragment defaultPack= root.getPackageFragment("");
        
        IPath libraryPath= root.getPath().append("archive.jar");
        IPackageFragmentRoot jarRoot= JavaProjectHelper.addLibrary(fProject, libraryPath);
        assertFalse(ClasspathModifier.getClasspathEntryFor(jarRoot.getPath(), fProject, IClasspathEntry.CPE_LIBRARY) == null);
        
        libraryPath= root.getPath().append("archive.zip");
        final IPackageFragmentRoot zipRoot= JavaProjectHelper.addLibrary(fProject, libraryPath);
        assertFalse(ClasspathModifier.getClasspathEntryFor(zipRoot.getPath(), fProject, IClasspathEntry.CPE_LIBRARY) == null);
        
        
        ICompilationUnit cuA= createICompilationUnit("A", pack1);
        final IResource excludedElements[]= {null, null}; 
        final ICompilationUnit cuB= createICompilationUnit("B", pack1);
        ExcludeOperation op= new ExcludeOperation(null, new IClasspathInformationProvider() {
            public void handleResult(List resultElements, CoreException exception, int operationType) {
                excludedElements[0]= (IFile)resultElements.get(0);
                excludedElements[1]= (IFolder)resultElements.get(1);
            }
            public IStructuredSelection getSelection() {
                List list= new ArrayList();