[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [Dltk-dev] Error reporting API
|
Hi Robert,
> 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.
it expects you to define your own identifier instead of IProblem.Syntax
> 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 ?
Install DLTK 3.0 into Eclipse 3.6.
Unfortunately there are some incompatibilities in DLTK 2.0 (released
with eclipse 3.6) and DLTK 3.0 (released with eclipse 3.7)
Regards,
Alex