Bug 122505 [build path] Can't exclude folder if exclusion pattern disabled on project/workspace level
Version: 3.2.0 Build id: I20051220-0800 Create project with inclusion and exclusion patters disabled and no seperate src and output folder. On build path menu select 'New Source Folder' The wizard shows the error: Cannot nest 'P03/src' inside 'P03'. To enable the nesting exclude 'src/' from 'P03' But the check box is disabled (which is correct). The error should say something else.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/AddSourceFolderWizardPage.java
protected void packRootChangeControlPressed(DialogField field) {
		if (field == fRootDialogField) {
			IPath initialPath= new Path(fRootDialogField.getText());
			String title= NewWizardMessages.NewSourceFolderWizardPage_ChooseExistingRootDialog_title; 
			String message= NewWizardMessages.NewSourceFolderWizardPage_ChooseExistingRootDialog_description; 
			IFolder folder= chooseFolder(title, message, initialPath);
			if (folder != null) {
				setFolderDialogText(folder.getFullPath());
			}
		} 
	}
	private void setFolderDialogText(IPath path) {
		IPath shortPath= path.removeFirstSegments(1);
		fRootDialogField.setText(shortPath.toString());
	}	
	
	protected void packRootDialogFieldChanged() {
		StatusInfo status= updateRootStatus();
		updateStatus(new IStatus[] {status});
	}
	private StatusInfo updateRootStatus() {		
		IJavaProject javaProject= fNewElement.getJavaProject();		
		IProject project= javaProject.getProject();
		
		StatusInfo pathNameStatus= validatePathName(fRootDialogField.getText(), project);
		
		if (!pathNameStatus.isOK())
			return pathNameStatus;
		
		StatusInfo result= new StatusInfo();