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
public boolean doQuery(CPListElement element) {
                return true;
            }
            public IPath getOutputLocation() {
                IPath path= null;
                try {
                    path= fProject.getOutputLocation();
                } catch (JavaModelException e) {}
                return new Path(path.toString() + "3");
            }
            public ClasspathModifierQueries.OutputFolderQuery getOutputFolderQuery(IPath path) throws JavaModelException {
                return getOutputFolderQueryInternal(fProject.getOutputLocation());
            }         
        };
        CPListElementAttribute newAttribute= (CPListElementAttribute)executeOperation(IClasspathInformationProvider.EDIT_OUTPUT, attribute, null, query, null, null);
        
        IPath editedOutputPath= new Path(oldOutputPath.toString() + "3");
        IFolder folder= getFolderHandle(new Path (fNormalFolder));
        IPackageFragmentRoot root= fProject.findPackageFragmentRoot(folder.getFullPath());
        CPListElement elem= CPListElement.createFromExisting(root.getRawClasspathEntry(), fProject);
        
        assertTrue(((IPath)newAttribute.getValue()).equals(editedOutputPath));
        assertTrue(((IPath)newAttribute.getValue()).equals(elem.getAttribute(CPListElement.OUTPUT)));
        
        validateClasspath();
    }
    
    public void testEditOutputFolderWithNullReturn() throws JavaModelException, CoreException, InvocationTargetException, InterruptedException {        
        CPListElementAttribute attribute= createOutputFolder(getOutputLocationQuery().getOutputLocation());
        IPackageFragmentRoot root= fProject.findPackageFragmentRoot(fProject.getPath().append(fNormalFolder));