removed NPE in XMLPreferenceInitializer
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / wizards / PHPFileWizardPage.java
index eb48f26..1b64440 100644 (file)
@@ -9,11 +9,9 @@ package net.sourceforge.phpeclipse.wizards;
 
  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;
@@ -127,7 +125,7 @@ public class PHPFileWizardPage extends WizardPage {
         containerText.setText(container.getFullPath().toString());
       }
     }
-    fileText.setText("index.php");
+    fileText.setText("*.php");
   }
 
   /**
@@ -165,10 +163,10 @@ public class PHPFileWizardPage extends WizardPage {
       return;
     }
 
-    if (!PHPFileUtil.isPHPFileName(fileName)) {
-      updateStatus(PHPWizardMessages.getString("WizardPage.mustBePHP"));
-      return;
-    }
+//    if (!PHPFileUtil.isPHPFileName(fileName)) {
+//      updateStatus(PHPWizardMessages.getString("WizardPage.mustBePHP"));
+//      return;
+//    }
     updateStatus(null);
   }