Bug 172000 [Wizards] WizardNewFileCreationPage should support overwriting existing resources
In the WizardNewFileCreationPage, there should be a method to set allowExistingResources flag for ResourceAndContainerGroup member. It is useful when both "create" and "renew/overwrite" operations are meaningful for a wizard.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectContentsLocationArea.java
private IProject existingProject;
	private FileSystemSelectionArea fileSystemSelectionArea;
	/**
	 * Create a new instance of the receiver.
	 * 
	 * @param reporter
	 * @param composite
	 * @param startProject
	 */
	public ProjectContentsLocationArea(IErrorMessageReporter reporter,
			Composite composite, IProject startProject) {
		errorReporter = reporter;
		projectName = startProject.getName();
		existingProject = startProject;
		boolean defaultEnabled = true;
		try {
			defaultEnabled = startProject.getDescription().getLocationURI() == null;
		} catch (CoreException e1) {
			
		}
		createContents(composite, defaultEnabled);
	}
	
	public void setExistingProject(IProject existingProject)
	{
		projectName = existingProject.getName();
		this.existingProject = existingProject;
	}
	/**
	 * Create a new instance of a ProjectContentsLocationArea.