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/ide/dialogs/PathVariableSelectionDialog.java
return;
		}
        if (selection.length == 1) {
			IPath selectionPath = selection[0].path;
			if (currentResource != null)
				selectionPath = URIUtil.toPath(currentResource.getPathVariableManager().resolveURI(URIUtil.toURI(selectionPath)));
			IFileInfo info = IDEResourceInfoUtils.getFileInfo(selectionPath);
			if (info.exists() && info.isDirectory()
					) {
				extendButton.setEnabled(true);
			} else {
				extendButton.setEnabled(false);
			}
                
        } else {
			extendButton.setEnabled(false);
		}
    }
	/**
	 * Sets the resource for which the path variable is being edited.
	 * 
	 * @param resource
	 * @since 3.6
	 */
	public void setResource(IResource resource) {
		currentResource = resource;
		pathVariablesGroup.setResource(resource);
	}
}