From f28c91fd058491a2a8b36a133660be0e7f625849 Mon Sep 17 00:00:00 2001 From: bananeweizen Date: Mon, 19 Dec 2005 20:33:37 +0000 Subject: [PATCH] fix browse button in create new PHP file wizard --- .../phpeclipse/wizards/PHPFileWizardPage.java | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/wizards/PHPFileWizardPage.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/wizards/PHPFileWizardPage.java index 1b64440..ec91d2b 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/wizards/PHPFileWizardPage.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/wizards/PHPFileWizardPage.java @@ -138,10 +138,13 @@ public class PHPFileWizardPage extends WizardPage { ResourcesPlugin.getWorkspace().getRoot(), false, PHPWizardMessages .getString("WizardPage.selectNewFileContainer")); if (dialog.open() == ContainerSelectionDialog.OK) { - Object[] result = dialog.getResult(); - if (result.length == 1) { - IContainer container = (IContainer) result[0]; - containerText.setText(container.getFullPath().toString()); + Object[] results = dialog.getResult(); + if (results.length == 1) { + Object result=results[0]; + if (result instanceof IPath) { + IPath ipath = (IPath) result; + containerText.setText(ipath.toString()); + } } } } -- 1.7.1