Bug 125138 [LinkedResources] cannot extend variable
Using I20060118-0800 Using the contextual menu upon a project that has at least one linked source folder: - Build Path/Configure Build Path; - Source tab; - select a linked source folder, Edit; - Variables; - define CURRENT_WORKSPACE pointing to the current workspace root: - New; - Name: CURRENT_WORKSPACE; - Folder...: select the workspace root, then OK; - OK; - Extend: gets a 'No entries available'. I may miss a point here, but I believe this not correct. I would expect to be able to select a subdirectory of my current workspace. Pointing the variable to a Java project root doesn't seem to help.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/PathVariableSelectionDialog.java
IIDEHelpContextIds.PATH_VARIABLE_SELECTION_DIALOG);
    }
    /* (non-Javadoc)
     * @see org.eclipse.jface.dialogs.Dialog#createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)
     */
    protected void createButtonsForButtonBar(Composite parent) {
        createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL,
                true);
        createButton(parent, EXTEND_ID, IDEWorkbenchMessages.PathVariableSelectionDialog_extendButton, false);
        createButton(parent, IDialogConstants.CANCEL_ID,
                IDialogConstants.CANCEL_LABEL, false);
        updateExtendButtonState();
    }
    /* (non-Javadoc)
     * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)
     */
    protected Control createDialogArea(Composite parent) {
         
        Composite dialogArea = (Composite) super.createDialogArea(parent);
        pathVariablesGroup.createContents(dialogArea);
        return dialogArea;
    }
    
    /* (non-Javadoc)
     * @see org.eclipse.jface.window.Window#close()
     */
    public boolean close() {
        pathVariablesGroup.dispose();
        return super.close();
    }