From 3a95091a17c886263ecda08e8da4b33fa4d82671 Mon Sep 17 00:00:00 2001 From: kpouer Date: Fri, 7 Feb 2003 13:22:54 +0000 Subject: [PATCH] The php files can now have as many . as they want in their name --- .../phpeclipse/wizards/PHPFileWizardPage.java | 3 +-- 1 files changed, 1 insertions(+), 2 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 7785377..bedcf2c 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/wizards/PHPFileWizardPage.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/wizards/PHPFileWizardPage.java @@ -148,7 +148,6 @@ public class PHPFileWizardPage extends WizardPage { /** * Ensures that both text fields are set. */ - private void dialogChanged() { String container = getContainerName(); String fileName = getFileName(); @@ -161,7 +160,7 @@ public class PHPFileWizardPage extends WizardPage { updateStatus("WizardPage.nameMustBeSpecified"); return; } - int dotLoc = fileName.indexOf('.'); + int dotLoc = fileName.lastIndexOf('.'); if (dotLoc != -1) { String ext = fileName.substring(dotLoc + 1); if (ext.equalsIgnoreCase("php") == false) { -- 1.7.1