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
Composite dialogArea = (Composite) super.createDialogArea(parent);
        pathVariablesGroup.createContents(dialogArea);
        return dialogArea;
    }
    
    /* (non-Javadoc)
     * @see org.eclipse.jface.window.Window#close()
     */
    public boolean close() {
        pathVariablesGroup.dispose();
        return super.close();
    }
  
    /* (non-Javadoc)
     * @see org.eclipse.jface.dialogs.Dialog#okPressed()
     */
    protected void okPressed() {
		 
        if (pathVariablesGroup.performOk()) {
            PathVariablesGroup.PathVariableElement[] selection = pathVariablesGroup
                    .getSelection();
            String[] variableNames = new String[selection.length];
            for (int i = 0; i < selection.length; i++) {
				variableNames[i] = selection[i].name;
			}
            setSelectionResult(variableNames);
        } else {
            setSelectionResult(null);
        }