public ClasspathModifierQueries.IOutputFolderQuery getOutputFolderQuery(IPath path) { return new ClasspathModifierQueries.IOutputFolderQuery(null) {
public ClasspathModifierQueries.OutputFolderQuery getOutputFolderQuery(IPath path) { return new ClasspathModifierQueries.OutputFolderQuery(null) {
    public void testEditOutputFolderWithProjAsRoot() throws JavaModelException, CoreException, InvocationTargetException, InterruptedException {        // Editing of the output folder is cancelled        IPackageFragmentRoot root= createFragmentRootAndKeepProjAsRoot();        IPath oldOutputPath= fProject.getPath();        CPListElement elem= CPListElement.createFromExisting(root.getRawClasspathEntry(), fProject);         CPListElementAttribute outputFolder= new CPListElementAttribute(elem, CPListElement.OUTPUT,                 elem.getAttribute(CPListElement.OUTPUT));                final IPath editedOutputPath= oldOutputPath.append(PreferenceConstants.getPreferenceStore().getString(PreferenceConstants.SRCBIN_BINNAME) + "3");        ClasspathModifierQueries.IOutputLocationQuery query= new ClasspathModifierQueries.IOutputLocationQuery() {                        public boolean doQuery(CPListElement element) {                return false; // cancel the operation            }            public IPath getOutputLocation() {                return editedOutputPath;            }            public ClasspathModifierQueries.IOutputFolderQuery getOutputFolderQuery(IPath path) {                return new ClasspathModifierQueries.IOutputFolderQuery(null) {                    public boolean doQuery(boolean b, OutputFolderValidator validator, IJavaProject project) {                        // cancel the operation                        return false;                    }                    public IPath getOutputLocation() {                        return null;                    }                                        public boolean removeProjectFromClasspath() {                        return true;                    }                                    };            }                 };        outputFolder= (CPListElementAttribute)executeOperation(IClasspathInformationProvider.EDIT_OUTPUT, outputFolder, null, query, null, null);        assertTrue(outputFolder == null);        testProjectIsOnClasspath(true);                validateClasspath();    }