Added a new PHP Parser Preference Page (global and on project level)
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / problem / ProblemReporter.java
index 23f61e3..dfb3f18 100644 (file)
@@ -376,7 +376,9 @@ public class ProblemReporter extends ProblemHandler implements ProblemReasons {
 
        // if not then check whether it is a configurable problem
        switch(problemId){
-
+           case IProblem.PHPVarDeprecatedWarning :
+                 return this.options.getSeverity(CompilerOptions.PHPVarDeprecatedWarning);
+       
                case IProblem.MaskedCatch : 
                        return this.options.getSeverity(CompilerOptions.MaskedCatchBlock);
 
@@ -2701,6 +2703,8 @@ public class ProblemReporter extends ProblemHandler implements ProblemReasons {
   public void phpVarDeprecatedWarning(
       int problemStartPosition, int problemEndPosition,
       ReferenceContext context, CompilationResult compilationResult) {
+    if (computeSeverity(IProblem.PHPVarDeprecatedWarning) == Ignore)
+      return;
     this.handle(IProblem.PHPVarDeprecatedWarning, NoArgument, new String[]{},
         problemStartPosition, problemEndPosition, context, compilationResult);
   }