Bug 310446 [LinkedResources] "Preferences > Linked Resources > New..." should not show "Variable..."
I20100425-2000 "Preferences > Linked Resources": The "New..." and "Edit..." dialogs should not show the "Variable..." button. When I select a variable, the "New Variable" dialog show an error (Path must be absolute.), and when I try to click "Extend...", nothing happens.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariableDialog.java
IPathVariableManager pathVariableManager2 = currentResource.getPathVariableManager();
			String[] variables = pathVariableManager2.getPathVariableNames();
    		String internalFormat = pathVariableManager2.convertFromUserEditableFormat(variableValue, operationMode == EDIT_LINK_LOCATION);
    		URI uri = URIUtil.toURI(Path.fromOSString(internalFormat));
        	URI resolvedURI = pathVariableManager2.resolveURI(uri);
        	String resolveValue = URIUtil.toPath(resolvedURI).toOSString();
        	
        	 
        	String[] newVariables = pathVariableManager2.getPathVariableNames();
        	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.setURIValue(newVariables[i], null);
					} catch (CoreException e) {
						
					}
            	}
        	}
        	return resolveValue;
        }
        return variableValue;
    }