Bug 311584 [build path] "Extend" path variable button does nothing
Build Identifier: I20100429-1549 The "extend..." button in the Java project's link source dialog does not work. Reproducible: Always Steps to Reproduce: * In the Java perspective, right click a Java project, goto Build Path > Link Source... * Select Variables... * In the dialog that appears, select an existing path variable and click Extend... Effect: Nothing happens. Expected: A file browser relative to the path variable appears.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/PathVariableSelectionDialog.java
* @see org.eclipse.jface.dialogs.Dialog#buttonPressed(int)
     */
    protected void buttonPressed(int buttonId) {
        if (buttonId == EXTEND_ID) {
            PathVariablesGroup.PathVariableElement selection = pathVariablesGroup
                    .getSelection()[0];
			if (currentResource != null) {
				FileFolderSelectionDialog dialog = new FileFolderSelectionDialog(
						getShell(), false, variableType);
				dialog
						.setTitle(IDEWorkbenchMessages.PathVariableSelectionDialog_ExtensionDialog_title);
				dialog
						.setMessage(NLS
								.bind(
										IDEWorkbenchMessages.PathVariableSelectionDialog_ExtensionDialog_description,
										selection.name));
				
				
				IPath selectionPath = selection.path;
				if (currentResource != null)
					selectionPath = URIUtil.toPath(currentResource.getPathVariableManager()
							.resolveURI(URIUtil.toURI(selectionPath)));
	            try {
						dialog.setInput(EFS.getStore(URIUtil.toURI(selectionPath)));
				} catch (CoreException e) {
					ErrorDialog.openError(getShell(), null, null, e.getStatus());
				}
	            if (dialog.open() == Window.OK
	                    && pathVariablesGroup.performOk()) {
	                setExtensionResult(selection, (IFileStore) dialog.getResult()[0]);