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
validateClasspath();
    }
    
    public void testAddZipFileToCP() throws InvocationTargetException, InterruptedException, CoreException {
        IPath libraryPath= fProject.getPath().append("src2").append("archive.zip");
        testRemoveZipFileFromCP();
        IFile zipFile= fProject.getProject().getFile(libraryPath.removeFirstSegments(1));
        assertTrue(zipFile.getFileExtension().equals("zip"));
        
        IPackageFragmentRoot root= (IPackageFragmentRoot)executeOperation(IClasspathInformationProvider.ADD_SEL_LIB_TO_BP, zipFile, getOutputFolderQueryInternal(fProject.getOutputLocation()), null, null, null);
        assertFalse(ClasspathModifier.getClasspathEntryFor(root.getPath(), fProject, IClasspathEntry.CPE_LIBRARY) == null);
        
        validateClasspath();
    }
    
    public void testAddJREToCP() throws InvocationTargetException, InterruptedException, CoreException {
        IClasspathEntry[] entries= fProject.getRawClasspath();
        IClasspathEntry entry= null;
        for(int i= 0; i < entries.length; i++) {
            if(entries[i].getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
                entry= entries[i];
                break;
            }
        }
        assertTrue(entry != null);
        assertFalse(ClasspathModifier.getClasspathEntryFor(entry.getPath(), fProject, IClasspathEntry.CPE_CONTAINER) == null);
        testRemoveJREFromCP();
        ClassPathContainer container= (ClassPathContainer)executeOperation(IClasspathInformationProvider.ADD_LIB_TO_BP, entry, null, null, null, null);
        assertTrue(container.getClasspathEntry().equals(entry));