Project: Eclipse_Platform_UI
Bug 25946 [Dialogs] ElementTreeSelectionDialog.getFirstResult() should return null
Reported: 2002-11-10 00:23:27 | Status: closed fixed

ElementTreeSelectionDialog.getFirstResult() returns the currently selected element if you cancel the Dialog using the window's X button (on the top right hand corner of the window). The return value should be null, just like what you get when the user presses the Cancel button.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/ElementTreeSelectionDialog.java