Bug 305004 The PathVariableSelectionDialog should not use 'Extend' to build path variable arguments
The PathVariableSelectionDialog should not use 'Extend' to build path variable arguments, since this is used already to build a path, which could be used to build a path starting off an argumented path variable.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/PathVariableSelectionDialog.java
getInitialElementSelections()), true);
			
			viewer.addSelectionChangedListener(new ISelectionChangedListener() {
				public void selectionChanged(SelectionChangedEvent event) {
					
					getOkButton().setEnabled(!event.getSelection().isEmpty());
				}
			});
			
			viewer.addDoubleClickListener(new IDoubleClickListener() {
				public void doubleClick(DoubleClickEvent event) {
					okPressed();
				}
			});
			return composite;
		}
		protected Control createButtonBar(Composite parent) {
			Control result = super.createButtonBar(parent);
			getOkButton().setEnabled(false);
			return result;
		}
		protected void okPressed() {
			IStructuredSelection selection = (IStructuredSelection) viewer
					.getSelection();
			setResult(selection.toList());
			super.okPressed();
		}
	}
}