Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] Error reporting API

Hi,

i'm currently using the following code to report syntax errors in my plugin to the DLTK-engine:

        IProblemSeverity severity = ProblemSeverity.ERROR;

IProblem problem = new DefaultProblem(filename, message, IProblem.Syntax,
                new String[0], severity, offset, offsetend, line);

         // IProblemreporter instance
         reporter.reportProblem(problem);


The error shows up in the editor, but i get a deprecation warning for the DefaultProblem constructor.

This works in Eclipse 3.7, but in 3.6 i'm getting a NoClassDefFoundException for

org.eclipse.dltk.compiler.problem.ProblemSeverity.


Is there a recommended way of doing this - possibly with backwardscompatibility to the 3.6 API ?


regards

-robert






Back to the top