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
/* (non-Javadoc)
     * @see org.eclipse.jface.dialogs.Dialog#okPressed()
     */
    protected void okPressed() {
		 
        if (pathVariablesGroup.performOk()) {
            PathVariablesGroup.PathVariableElement[] selection = pathVariablesGroup
                    .getSelection();
            String[] variableNames = new String[selection.length];
            for (int i = 0; i < selection.length; i++) {
				variableNames[i] = selection[i].name;
			}
            setSelectionResult(variableNames);
        } else {
            setSelectionResult(null);
        }
        super.okPressed();
    }
    /**
     * Sets the dialog result to the concatenated variable name and extension.
     * 
     * @param variable variable selected in the variables list and extended
     * 	by <code>extensionFile</code>
     * @param extensionFile file selected to extend the variable.
     */
    private void setExtensionResult(
            PathVariablesGroup.PathVariableElement variable, IFileStore extensionFile) {
        IPath extensionPath = new Path(extensionFile.toString());
        int matchCount = extensionPath.matchingFirstSegments(variable.path);