Bug 17618 Changing output location should delete all derived resources
F1 1) create a project (autobuild on) 2) import Java sources and resources 3) change output folder to project/bin ->all class files are removed (fine) 4) change output folder back to be the project -> all class files are removed (fine) 5) open project/bin -> all resources are still there Note: When opening the properties dialog on such a resource it is tagged as "Derived". Thus, it should be possible to remove all derived resources as long as they have been created by the Java builder.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
}
	
	public void configureJavaProject(IProgressMonitor monitor) throws CoreException, InterruptedException {
		if (monitor == null) {
			monitor= new NullProgressMonitor();
		}				
		monitor.beginTask(NewWizardMessages.getString("BuildPathsBlock.operationdesc"), 10); 
		try {
			Shell shell= null;
			if (fSWTWidget != null && !fSWTWidget.getShell().isDisposed()) {
				shell= fSWTWidget.getShell();
			}
			
			internalConfigureJavaProject(fClassPathList.getElements(), getOutputLocation(), shell, monitor);
		} finally {
			monitor.done();
		}
	}
	
	/**
	 * Creates the Java project and sets the configured build path and output location.
	 * If the project already exists only build paths are updated.
	 */
	private void internalConfigureJavaProject(List classPathEntries, IPath outputLocation, Shell shell, IProgressMonitor monitor) throws CoreException, InterruptedException {
		
		
		IRemoveOldBinariesQuery reorgQuery= null;
		if (shell != null) {
			reorgQuery= getRemoveOldBinariesQuery(shell);
		}