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
IPathVariableManager pathVariableManager2 = currentResource.getProject().getPathVariableManager();
			String[] variables = pathVariableManager2.getPathVariableNames(currentResource);
    		String internalFormat = pathVariableManager2.convertFromUserEditableFormat(variableValue, operationMode == EDIT_LINK_LOCATION, currentResource);
    		URI uri = URIUtil.toURI(Path.fromOSString(internalFormat));
        	URI resolvedURI = pathVariableManager2.resolveURI(uri, currentResource);
        	String resolveValue = URIUtil.toPath(resolvedURI).toOSString();
        	
        	 
        	String[] newVariables = pathVariableManager2.getPathVariableNames(currentResource);
        	for (int i = 0; i < newVariables.length; i++) {
        		boolean found = false;
            	for (int j = 0; j < variables.length; j++) {
            		if (variables[j].equals(newVariables[i])) {
            			found = true;
            			break;
            		}
            	}
            	if (!found) {
					try {
						pathVariableManager2.setValue(newVariables[i], currentResource, null);
					} catch (CoreException e) {
						
					}
            	}
        	}
        	return resolveValue;
        }
        return variableValue;
    }