Project: JDT
Bug 76756 Project properties UI: Required projects can not be removed
Reported: 2004-10-21 11:45:41 | Status: verified fixed

Once a project has been added to the required projects list, it is impossible to remove this project from the list using the properties UI, because the "Remove" button remains disabled. Furthermore, deleting the childs of this required project (that is "Included: (All)" and "Excluded: "None") leads to the following error message: Setting build path (Error: An internal error occurred during: "Setting build path".) An internal error occurred during: "Setting build path". java.lang.NullPointerException at org.eclipse.jdt.internal.core.ClasspathEntry.<init>(ClasspathEntry.java:170) at org.eclipse.jdt.core.JavaCore.newProjectEntry(JavaCore.java:3041) at org.eclipse.jdt.internal.ui.wizards.buildpaths.CPListElement.newClasspathEntry(CPListElement.java:125) at org.eclipse.jdt.internal.ui.wizards.buildpaths.CPListElement.getClasspathEntry(CPListElement.java:108) at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.internalConfigureJavaProject(BuildPathsBlock.java:709) at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.configureJavaProject(BuildPathsBlock.java:647) at org.eclipse.jdt.internal.ui.preferences.BuildPathsPropertyPage$1.run(BuildPathsPropertyPage.java:188) at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:34) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1676) at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3506) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:65) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter$1.run(WorkbenchRunnableAdapter.java:80) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66) A possible workaround would be to delete the appropriate entry from the .classpath file

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ProjectsWorkbookPage.java