public ClasspathModifierQueries.IOutputFolderQuery getOutputFolderQuery(IPath path) { return new ClasspathModifierQueries.IOutputFolderQuery(null) {
public ClasspathModifierQueries.OutputFolderQuery getOutputFolderQuery(IPath path) { return new ClasspathModifierQueries.OutputFolderQuery(null) {
    public void testCreateOutputFolderWithProjAsRootCancel() throws JavaModelException, CoreException, InvocationTargetException, InterruptedException {        // Creation of the output folder is cancelled        IPath oldOutputPath= fProject.getPath();        IPath newOutputPath= oldOutputPath.append(PreferenceConstants.getPreferenceStore().getString(PreferenceConstants.SRCBIN_BINNAME) + "2");        IPackageFragmentRoot root= createFragmentRootAndKeepProjAsRoot();                IFolder outputFolder= fProject.getProject().getFolder(newOutputPath);        assertFalse(outputFolder.exists());                ClasspathModifierQueries.IOutputLocationQuery query= new ClasspathModifierQueries.IOutputLocationQuery() {            public boolean doQuery(CPListElement element) {                return false; // cancel            }            public IPath getOutputLocation() {                // not important here                return null;            }            public ClasspathModifierQueries.IOutputFolderQuery getOutputFolderQuery(IPath path) {                return new ClasspathModifierQueries.IOutputFolderQuery(null) {                    public boolean doQuery(boolean b, OutputFolderValidator validator, IJavaProject project) {                        return false;                    }                    public IPath getOutputLocation() {                        return null;                    }                    public boolean removeProjectFromClasspath() {                        return true;                    }                                    };            }                    };        CPListElementAttribute outputAttribute= (CPListElementAttribute)executeOperation(IClasspathInformationProvider.CREATE_OUTPUT, root, null, query, null, null);        assertTrue(outputAttribute == null);        testProjectIsOnClasspath(true);                validateClasspath();    }