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
path= new Path(completeName(path.toString())); 
            for (int i=0; i < paths.length; i++) {
                if (paths[i].equals(path))
                    return true;
                monitor.worked(1);
            }
        } finally {
           monitor.done();
       }            
       return false;
    }
    
    /**
     * Add a '/' at the end of the name if
     * it does not end with '.java'.
     * 
     * @param name append '/' at the end if
     * necessary
     * @return modified string
     */
    private static String completeName(String name) {
        if (!name.endsWith(".java")) { 
            name= name + "/"; 
            name= name.replace('.', '/');
            return name;
        }
        return name;
    }
}