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/misc/ResourceAndContainerGroup.java
public static final int PROBLEM_NONE = 0;
    public static final int PROBLEM_RESOURCE_EMPTY = 1;
    public static final int PROBLEM_RESOURCE_EXIST = 2;
    public static final int PROBLEM_PATH_INVALID = 4;
    public static final int PROBLEM_CONTAINER_EMPTY = 5;
    public static final int PROBLEM_PROJECT_DOES_NOT_EXIST = 6;
    public static final int PROBLEM_NAME_INVALID = 7;
    public static final int PROBLEM_PATH_OCCUPIED = 8;
    
    private Listener client;
    
    private boolean allowExistingResources = false;
    
    private String resourceType = IDEWorkbenchMessages.ResourceGroup_resource;
    
    private boolean showClosedProjects = true;
    
    private String problemMessage = "";
    private int problemType = PROBLEM_NONE;
    
    private ContainerSelectionGroup containerGroup;
    private Text resourceNameField;
    
    /**
     * The resource extension for the resource name field.
     * @see ResourceAndContainerGroup#setResourceExtension(String)
     * @since 3.3