From 0a669bdb08f2b563a657daaf010842c113fce76e Mon Sep 17 00:00:00 2001 From: toshihiro Date: Wed, 9 May 2007 10:03:11 +0000 Subject: [PATCH] Using standard dialog org.eclipse.ui.dialogs.ElementListSelectionDialog instead of net.sourceforge.phpdt.internal.ui.dialogs.ElementListSelectionDialog. --- .../phpdt/internal/ui/util/PHPFileSelector.java | 3 +-- .../phpdt/internal/ui/util/PHPProjectSelector.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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 f8b6429..9404adb 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 @@ -1,6 +1,5 @@ package net.sourceforge.phpdt.internal.ui.util; -import net.sourceforge.phpdt.internal.ui.dialogs.ElementListSelectionDialog; import net.sourceforge.phpeclipse.PHPeclipsePlugin; import org.eclipse.core.resources.IFile; @@ -13,6 +12,7 @@ import org.eclipse.core.runtime.Path; import org.eclipse.jface.util.Assert; import org.eclipse.jface.viewers.LabelProvider; import org.eclipse.swt.widgets.Composite; +import org.eclipse.ui.dialogs.ElementListSelectionDialog; import org.eclipse.ui.model.IWorkbenchAdapter; public class PHPFileSelector extends ResourceSelector { @@ -97,7 +97,6 @@ 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 75c22eb..b33471e 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 @@ -1,11 +1,11 @@ package net.sourceforge.phpdt.internal.ui.util; import net.sourceforge.phpdt.core.JavaCore; -import net.sourceforge.phpdt.internal.ui.dialogs.ElementListSelectionDialog; import net.sourceforge.phpeclipse.PHPeclipsePlugin; import org.eclipse.core.resources.IProject; import org.eclipse.swt.widgets.Composite; +import org.eclipse.ui.dialogs.ElementListSelectionDialog; import org.eclipse.ui.model.WorkbenchLabelProvider; public class PHPProjectSelector extends ResourceSelector { @@ -31,7 +31,6 @@ 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()); -- 1.7.1