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
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;
    
    private static final int SIZING_TEXT_FIELD_WIDTH = 250;