Bug 299212 [Preferences] BIDI_BDL: Incorrect path display in Linked Resources list of Preferences dialog
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariableDialog.java
public void widgetSelected(SelectionEvent e) {
                selectFolder();
            }
        });
    	variableButton = new Button(buttonsComposite, SWT.PUSH);
    	variableButton.setText(IDEWorkbenchMessages.PathVariableDialog_variable);
 	    variableButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false,
    		false));
        variableButton.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                selectVariable();
            }
        });
        
        variableResolvedValueLabel = new Label(contents, SWT.LEAD);
        variableResolvedValueLabel.setText(resolvedValueLabelText);
        
        variableResolvedValueField = new Label(contents, SWT.LEAD | SWT.SINGLE | SWT.READ_ONLY);
        variableResolvedValueField.setText(getVariableResolvedValue());
        variableResolvedValueField.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,
        		false, 2, 1));
    }
    private IPathVariableManager getPathVariableManager() {
    	if (currentResource != null)
    		return currentResource.getProject().getPathVariableManager();
    	return ResourcesPlugin.getWorkspace().getPathVariableManager();
    }
    
    private String getVariableResolvedValue() {
        if (currentResource != null) {