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
});
        setShellStyle(getShellStyle() | SWT.RESIZE);
    }
    /* (non-Javadoc)
     * @see org.eclipse.jface.dialogs.Dialog#buttonPressed(int)
     */
    protected void buttonPressed(int buttonId) {
        if (buttonId == EXTEND_ID) {
            FileFolderSelectionDialog dialog = new FileFolderSelectionDialog(
                    getShell(), false, variableType);
            PathVariablesGroup.PathVariableElement selection = pathVariablesGroup
                    .getSelection()[0];
            dialog.setTitle(IDEWorkbenchMessages.PathVariableSelectionDialog_ExtensionDialog_title);
            dialog.setMessage(NLS.bind(IDEWorkbenchMessages.PathVariableSelectionDialog_ExtensionDialog_description, selection.name));
            dialog.setInput(selection.path.toFile());
            if (dialog.open() == Window.OK
                    && pathVariablesGroup.performOk()) {
                setExtensionResult(selection, (IFileStore) dialog.getResult()[0]);
                super.okPressed();
            }
        } else {
			super.buttonPressed(buttonId);
		}
    }
    /* (non-Javadoc)
     * @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell)
     */
    protected void configureShell(Shell shell) {
        super.configureShell(shell);
        PlatformUI.getWorkbench().getHelpSystem().setHelp(shell,