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
assertTrue(root.getRawClasspathEntry().getOutputLocation() != null);
        
        ClasspathModifierQueries.IOutputLocationQuery query= new ClasspathModifierQueries.IOutputLocationQuery() {
            
            public boolean doQuery(CPListElement element) {
                return true;
            }
            public IPath getOutputLocation() {
                return null;
            }
            public ClasspathModifierQueries.OutputFolderQuery getOutputFolderQuery(IPath path) throws JavaModelException {
                return NewProjectWizardTest.this.getOutputFolderQueryInternal(fProject.getOutputLocation());
            }      
        };
        CPListElementAttribute newAttribute= (CPListElementAttribute)executeOperation(IClasspathInformationProvider.EDIT_OUTPUT, attribute, null, query, null, null);
        
        assertTrue(root.getRawClasspathEntry().getOutputLocation() == null);
        assertTrue(newAttribute.getValue() == null);
        
        validateClasspath();
    }
    
    public void testResetOutputFolder() throws JavaModelException, CoreException, InvocationTargetException, InterruptedException {
        IPath oldOutputPath= fProject.getOutputLocation();
        IPath newOutputPath= new Path(oldOutputPath.toString() + "2");
        CPListElementAttribute attribute= createOutputFolder(newOutputPath);
        
        CPListElementAttribute newAttribute= (CPListElementAttribute)executeOperation(IClasspathInformationProvider.RESET, attribute, null, null, null, null);