return removeProject;
return fRemoveProject;
    public static IOutputFolderQuery getDefaultFolderQuery(final Shell shell, IPath outputLocation) {        return new IOutputFolderQuery(outputLocation) {            private final IPath[] fOutputLocation= new IPath[1];            private boolean removeProject;            public boolean doQuery(final boolean editingOutputFolder,  final OutputFolderValidator validator, final IJavaProject project) throws JavaModelException {                final boolean[] result= new boolean[1];                removeProject= false;                fOutputLocation[0]= project.getOutputLocation();                Display.getDefault().syncExec(new Runnable() {                    public void run() {                                                Shell sh= shell != null ? shell : JavaPlugin.getActiveWorkbenchShell();                                                String title= NewWizardMessages.getString("ClasspathModifier.ChangeOutputLocationDialog.title"); //$NON-NLS-1$$                        MessageDialog dialog;                                                IPath newOutputFolder= null;                        String message;                        if (fDesiredOutputLocation.segmentCount() == 1) {                            String outputFolderName= PreferenceConstants.getPreferenceStore().getString(PreferenceConstants.SRCBIN_BINNAME);                            newOutputFolder= fDesiredOutputLocation.append(outputFolderName);                            newOutputFolder= getValidPath(newOutputFolder, validator);                            message= NewWizardMessages.getFormattedString("ClasspathModifier.ChangeOutputLocationDialog.project.outputLocation", newOutputFolder); //$NON-NLS-1$                            dialog= new MessageDialog(sh, title, null, message, MessageDialog.QUESTION, new String[] { IDialogConstants.OK_LABEL}, 0);                        } else {                            newOutputFolder= fDesiredOutputLocation;                            newOutputFolder= getValidPath(newOutputFolder, validator);                            if (editingOutputFolder && newOutputFolder != null) {                                fOutputLocation[0]= newOutputFolder;                                result[0]= true;                                return; // show no dialog                            }                            message= NewWizardMessages.getString("ClasspathModifier.ChangeOutputLocationDialog.project.message"); //$NON-NLS-1$                            removeProject= true;                            dialog= new MessageDialog(sh, title, null, message, MessageDialog.QUESTION, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL}, 0);                        }                                                int code= dialog.open();                        boolean ok= code == IDialogConstants.OK_ID;                        if (ok) {                            if (newOutputFolder != null) {                                fOutputLocation[0]= newOutputFolder;                            }                        }                        result[0]= ok;                    }                });                return result[0];            }                        public IPath getOutputLocation() {                return fOutputLocation[0];            }                        public boolean removeProjectFromClasspath() {                return removeProject;            }                        private IPath getValidPath(IPath newOutputFolder, OutputFolderValidator validator) {                int i= 1;                IPath path= newOutputFolder;                while (!validator.validate(path)) {                    path= new Path(newOutputFolder.toString() + i);                    i++;                }                return path;            }        };    }