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
}
        };
        
        ClasspathModifierOperation op= null;
        switch(type) {
            case IClasspathInformationProvider.CREATE_FOLDER: op= new CreateFolderOperation(null, provider); break;
            case IClasspathInformationProvider.ADD_SEL_SF_TO_BP: op= new AddSelectedSourceFolderOperation(null, provider); break;
            case IClasspathInformationProvider.ADD_SEL_LIB_TO_BP: op= new AddSelectedLibraryOperation(null, provider); break;
            case IClasspathInformationProvider.REMOVE_FROM_BP: op= new RemoveFromClasspathOperation(null, provider); break;
            case IClasspathInformationProvider.INCLUDE: op= new IncludeOperation(null, provider); break;
            case IClasspathInformationProvider.UNINCLUDE: op= new UnincludeOperation(null, provider); break;
            case IClasspathInformationProvider.EXCLUDE: op= new ExcludeOperation(null, provider); break;
            case IClasspathInformationProvider.UNEXCLUDE: op= new UnexcludeOperation(null, provider); break;
            case IClasspathInformationProvider.EDIT_FILTERS: op= new EditFiltersOperation(null, provider); break;
            case IClasspathInformationProvider.EDIT_OUTPUT: op= new EditOutputFolderOperation(null, provider); break;
            case IClasspathInformationProvider.RESET: op= new ResetOperation(null, provider); break;
            case IClasspathInformationProvider.CREATE_OUTPUT: op= new CreateOutputFolderOperation(null, provider); break;
            case IClasspathInformationProvider.ADD_LIB_TO_BP: op= new AddLibraryOperation(null, provider); break;
        }
        
        op.run(null);
        
        return returnValue[0];
    }
    
    protected IPackageFragmentRoot addToClasspath(IPath path) throws CoreException, InvocationTargetException, InterruptedException {
        IPath[] paths= getPaths();
        assertFalse(contains(path, paths, null));     
        
        IPackageFragmentRoot root= (IPackageFragmentRoot)executeOperation(IClasspathInformationProvider.ADD_SEL_SF_TO_BP, getFolderHandle(path), getOutputFolderQueryInternal(fProject.getOutputLocation()), null, null, null);