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
layout.marginWidth = 0;
        layout.marginHeight = 0;
        buttonsComposite.setLayout(layout);
        if ((variableType & IResource.FILE) != 0) {
        	layout.numColumns++;
	        
	        fileButton = new Button(buttonsComposite, SWT.PUSH);
	        fileButton.setText(IDEWorkbenchMessages.PathVariableDialog_file);
	        fileButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false,
	        		false));
	
	        fileButton.addSelectionListener(new SelectionAdapter() {
	            public void widgetSelected(SelectionEvent e) {
	                selectFile();
	            }
	        });
	        setButtonLayoutData(fileButton);
		}
        if ((variableType & IResource.FOLDER) != 0) {
        	layout.numColumns++;
	        
	        folderButton = new Button(buttonsComposite, SWT.PUSH);
	        folderButton.setText(IDEWorkbenchMessages.PathVariableDialog_folder);
	        folderButton.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false,
	        		false));
	
	        folderButton.addSelectionListener(new SelectionAdapter() {
	            public void widgetSelected(SelectionEvent e) {
	                selectFolder();
	            }