Bug 151442 Javadoc error in ResourceAndContainerGroup.getResource()
/** * Returns a string that is the path of the currently selected * container. Returns an empty string if no container has been * selected. */ public String getResource() { return resourceNameField.getText(); } I don't believe "...currently selected 'container'..." is what is meant for this method, as 'container' is refers to the container field of this group, not the resource file name that this method is associated with.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ResourceAndContainerGroup.java
}
        problemType = PROBLEM_NONE;
        problemMessage = "";
        if (!validateContainer() || !validateResourceName()) {
			return false;
		}
        IPath path = containerGroup.getContainerFullPath().append(
                resourceNameField.getText());
        return validateFullResourcePath(path);
    }
    /**
     * Returns a <code>boolean</code> indicating whether the specified resource
     * path represents a valid new resource in the workbench.  An error message
     * is stored for future reference if the path  does not represent a valid
     * new resource path.
     *
     * @param resourcePath the path to validate
     * @return <code>boolean</code> indicating validity of the resource path
     */
    protected boolean validateFullResourcePath(IPath resourcePath) {
        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        IStatus result = workspace.validatePath(resourcePath.toString(),
                IResource.FOLDER);
        if (!result.isOK()) {
            problemType = PROBLEM_PATH_INVALID;
            problemMessage = result.getMessage();
            return false;
        }
        if (!allowExistingResources
                && (workspace.getRoot().getFolder(resourcePath).exists() || workspace