Fix - Unless clicking an element except the first one, it is impossible to enable...
authortoshihiro <toshihiro>
Thu, 3 May 2007 12:29:36 +0000 (12:29 +0000)
committertoshihiro <toshihiro>
Thu, 3 May 2007 12:29:36 +0000 (12:29 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileSelector.java
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPProjectSelector.java

index bb920a7..f8b6429 100644 (file)
@@ -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())
index 9b41539..75c22eb 100644 (file)
@@ -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());