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
* Returns an error message indicating the current problem with the value
     * of a control in the group, or an empty message if all controls in the
     * group contain valid values.
     *
     * @return java.lang.String
     */
    public String getProblemMessage() {
        return problemMessage;
    }
    /**
     * Returns the type of problem with the value of a control
     * in the group.
     *
     * @return one of the PROBLEM_* constants
     */
    public int getProblemType() {
        return problemType;
    }
    /**
     * 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();
    }
    /**
     * Handles events for all controls in the group.
     *
     * @param e org.eclipse.swt.widgets.Event