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;
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 {
dialog.setTitle(browseDialogTitle);
dialog.setMessage(browseDialogMessage);
dialog.setElements(getPHPFiles());
- dialog.setInitialElementSelections(null);
if (dialog.open() == ElementListSelectionDialog.OK) {
textField.setText(((IResource) dialog.getFirstResult())
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 {
dialog.setTitle(browseDialogTitle);
dialog.setMessage(browseDialogMessage);
dialog.setElements(JavaCore.getPHPProjects());
- dialog.setInitialElementSelections(null);
if (dialog.open() == ElementListSelectionDialog.OK) {
textField.setText(((IProject) dialog.getFirstResult()).getName());