/**
* Ensures that both text fields are set.
*/
-
private void dialogChanged() {
String container = getContainerName();
String fileName = getFileName();
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) {