From: toshihiro Date: Thu, 3 May 2007 12:29:36 +0000 (+0000) Subject: Fix - Unless clicking an element except the first one, it is impossible to enable... X-Git-Url: http://secure.phpeclipse.com Fix - Unless clicking an element except the first one, it is impossible to enable the OK button. (Run/Debug Configuration - Project/File Browse - Selection Dialog) --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileSelector.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileSelector.java index bb920a7..f8b6429 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileSelector.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileSelector.java @@ -97,6 +97,7 @@ public class PHPFileSelector extends ResourceSelector { dialog.setTitle(browseDialogTitle); dialog.setMessage(browseDialogMessage); dialog.setElements(getPHPFiles()); + dialog.setInitialElementSelections(null); if (dialog.open() == ElementListSelectionDialog.OK) { textField.setText(((IResource) dialog.getFirstResult()) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPProjectSelector.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPProjectSelector.java index 9b41539..75c22eb 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPProjectSelector.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPProjectSelector.java @@ -31,6 +31,7 @@ public class PHPProjectSelector extends ResourceSelector { dialog.setTitle(browseDialogTitle); dialog.setMessage(browseDialogMessage); dialog.setElements(JavaCore.getPHPProjects()); + dialog.setInitialElementSelections(null); if (dialog.open() == ElementListSelectionDialog.OK) { textField.setText(((IProject) dialog.getFirstResult()).getName());