Rename HTML editor to Smarty editor
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / problem / ProblemHandler.java
index 6e52747..f29e11d 100644 (file)
@@ -14,6 +14,7 @@ import net.sourceforge.phpdt.core.compiler.IProblem;
 import net.sourceforge.phpdt.internal.compiler.CompilationResult;
 import net.sourceforge.phpdt.internal.compiler.IErrorHandlingPolicy;
 import net.sourceforge.phpdt.internal.compiler.IProblemFactory;
+import net.sourceforge.phpdt.internal.compiler.impl.CompilerOptions;
 import net.sourceforge.phpdt.internal.compiler.impl.ReferenceContext;
 
 
@@ -32,18 +33,17 @@ public class ProblemHandler implements ProblemSeverities {
        
        final public IErrorHandlingPolicy policy;
        public final IProblemFactory problemFactory;
-//     public final CompilerOptions options;
+       public final CompilerOptions options;
 /*
  * Problem handler can be supplied with a policy to specify
  * its behavior in error handling. Also see static methods for
  * built-in policies.
  *
  */
-public ProblemHandler(IErrorHandlingPolicy policy, IProblemFactory problemFactory) {
-//CompilerOptions options, IProblemFactory problemFactory) {
+public ProblemHandler(IErrorHandlingPolicy policy, CompilerOptions options, IProblemFactory problemFactory) {
        this.policy = policy;
        this.problemFactory = problemFactory;
-//     this.options = options;
+       this.options = options;
 }
 /*
  * Given the current configuration, answers which category the problem
@@ -51,10 +51,6 @@ public ProblemHandler(IErrorHandlingPolicy policy, IProblemFactory problemFactor
  *             Error | Warning | Ignore
  */
 public int computeSeverity(int problemId){
-       if (problemId==IProblem.PHPParsingWarning ||
-           problemId==IProblem.PHPVarDeprecatedWarning) {
-         return Warning;
-       }
        return Error; // by default all problems are errors
 }
 public IProblem createProblem(
@@ -164,7 +160,7 @@ public void record(IProblem problem, CompilationResult unitResult, ReferenceCont
 /**
  * Search the line number corresponding to a specific position
  *
- * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.SyntheticAccessMethodBinding
+ * @param methodBinding net.sourceforge.phpdt.internal.compiler.nameloopkup.SyntheticAccessMethodBinding
  */
 public static final int searchLineNumber(int[] startLineIndexes, int position) {
        if (startLineIndexes == null)