the unknown variables should be reported only once
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / util / PHPFileUtil.java
1 /*
2  * Created on 09.08.2003
3  *
4  */
5 package net.sourceforge.phpdt.internal.ui.util;
6
7 import org.eclipse.core.resources.IFile;
8
9 /**
10  * @author khartlage
11  *
12  */
13 public class PHPFileUtil {
14   static public boolean isPHPFile(IFile file) {
15     if ("php".equalsIgnoreCase(file.getFileExtension())
16       || "php3".equalsIgnoreCase(file.getFileExtension())
17       || "php4".equalsIgnoreCase(file.getFileExtension())
18       || "inc".equalsIgnoreCase(file.getFileExtension())) {
19       return true;
20     }
21     return false;
22   }
23 }