X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/problem/ProblemReporter.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/problem/ProblemReporter.java index c66a8c9..78baf7d 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/problem/ProblemReporter.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/problem/ProblemReporter.java @@ -376,7 +376,11 @@ public class ProblemReporter extends ProblemHandler implements ProblemReasons { switch(problemId){ case IProblem.PHPVarDeprecatedWarning : return this.options.getSeverity(CompilerOptions.PHPVarDeprecatedWarning); - + case IProblem.PHPBadStyleKeywordWarning : + return this.options.getSeverity(CompilerOptions.PHPBadStyleKeywordWarning); + case IProblem.PHPBadStyleUppercaseIdentifierWarning : + return this.options.getSeverity(CompilerOptions.PHPBadStyleUppercaseIdentifierWarning); + case IProblem.MaskedCatch : return this.options.getSeverity(CompilerOptions.MaskedCatchBlock); @@ -2706,4 +2710,22 @@ public class ProblemReporter extends ProblemHandler implements ProblemReasons { this.handle(IProblem.PHPVarDeprecatedWarning, NoArgument, new String[]{}, problemStartPosition, problemEndPosition, context, compilationResult); } + + public void phpKeywordWarning(String[] messageArguments, + int problemStartPosition, int problemEndPosition, + ReferenceContext context, CompilationResult compilationResult) { + if (computeSeverity(IProblem.PHPBadStyleKeywordWarning) == Ignore) + return; + this.handle(IProblem.PHPBadStyleKeywordWarning, NoArgument, messageArguments, + problemStartPosition, problemEndPosition, context, compilationResult); + } + + public void phpUppercaseIdentifierWarning( + int problemStartPosition, int problemEndPosition, + ReferenceContext context, CompilationResult compilationResult) { + if (computeSeverity(IProblem.PHPBadStyleUppercaseIdentifierWarning) == Ignore) + return; + this.handle(IProblem.PHPBadStyleUppercaseIdentifierWarning, NoArgument, new String[]{}, + problemStartPosition, problemEndPosition, context, compilationResult); + } }