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
IPath[] inclusionPatterns= entry.getInclusionPatterns();
        IPath[] exclusionPatterns= entry.getExclusionPatterns();
        assertTrue(inclusionPatterns.length == nrIncluded);
        assertTrue(exclusionPatterns.length + 1 == nrExcluded);
        assertFalse(contains(new Path(folder.getName()), inclusionPatterns, null));
        assertFalse(contains(new Path(folder.getName()), exclusionPatterns, null));
        assertTrue(fragment.getPath().equals(folder.getFullPath()));
        
        validateClasspath();
    }
    public void testRemoveJarFileFromCP() throws InvocationTargetException, InterruptedException, CoreException, IOException {
        IPath srcPath= new Path("src2");
        IPackageFragmentRoot parentRoot= addToClasspath(srcPath);
        IPath libraryPath= parentRoot.getPath().append("archive.jar");
        IPackageFragmentRoot root= JavaProjectHelper.addLibrary(fProject, libraryPath, null, null);
        assertFalse(ClasspathModifier.getClasspathEntryFor(root.getPath(), fProject, IClasspathEntry.CPE_LIBRARY) == null);
        executeOperation(IClasspathInformationProvider.REMOVE_FROM_BP, root, null, null, null, null);
        
        
        
        
        validateClasspath();
    }
    public void testRemoveZipFileFromCP() throws InvocationTargetException, InterruptedException, CoreException {
        IPath srcPath= new Path("src2");
        IPackageFragmentRoot parentRoot= addToClasspath(srcPath);
        IPath libraryPath= parentRoot.getPath().append("archive.zip");
        IPackageFragmentRoot root= JavaProjectHelper.addLibrary(fProject, libraryPath);
        assertFalse(ClasspathModifier.getClasspathEntryFor(root.getPath(), fProject, IClasspathEntry.CPE_LIBRARY) == null);
        executeOperation(IClasspathInformationProvider.REMOVE_FROM_BP, root, null, null, null, null);