package net.sourceforge.phpeclipse.mover; import java.io.File; /** * Allows only php files for the mover */ public class PHPFilter extends DefaultFilter { public boolean isFileOk(File file) { String fileName = file.getAbsolutePath().toLowerCase(); if (fileName.endsWith(".php") || fileName.endsWith(".php3") || fileName.endsWith(".php4") || fileName.endsWith(".phtml") || fileName.endsWith(".inc")) { return true; } return false; } public boolean isDirectoryOk(File file) { return true; } }