Contributors:
IBM Corporation - Initial implementation
- Klaus Hartlage - www.eclipseproject.de
+ www.phpeclipse.de
**********************************************************************/
-import net.sourceforge.phpdt.internal.ui.util.PHPFileUtil;
-
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
else
container = ((IResource) obj).getParent();
containerText.setText(container.getFullPath().toString());
+ fileText.setFocus();
}
}
- fileText.setText("index.php");
+ fileText.setText("*.php");
}
/**
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());
+ }
}
}
}
return;
}
- if (!PHPFileUtil.isPHPFileName(fileName)) {
- updateStatus(PHPWizardMessages.getString("WizardPage.mustBePHP"));
- return;
- }
+// if (!PHPFileUtil.isPHPFileName(fileName)) {
+// updateStatus(PHPWizardMessages.getString("WizardPage.mustBePHP"));
+// return;
+// }
updateStatus(null);
}