[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [Dltk-dev] The problems do not appear in the Problems View
|
Hi Gabriel,
Problems view is filled from the builder and you should configure the components of the builder.
The simplest way to go is something like the following (just replace ruby with your nature).
<extension
point="org.eclipse.dltk.core.buildParticipant">
<buildParticipant
class="org.eclipse.dltk.core.builder.ParserBuildParticipantFactory"
id="org.eclipse.dltk.ruby.buildParticipant.parser"
name="%parserBuildParticipant.name"
nature="org.eclipse.dltk.ruby.core.nature">
</buildParticipant>
</extension>
Also you could specify additional participants for TODO processors, semantic checkers, etc.
Line number is saved to the problem marker and it is shown in the problems view at least, but column number seams to be unused.
Regards,
Alex
----- Original Message -----
From: "Gabriel Petrovay" <gabriel.petrovay@xxxxxxxxxx>
To: "dltk-dev" <dltk-dev@xxxxxxxxxxx>
Sent: Wednesday, March 25, 2009 1:56:22 AM GMT +06:00 Almaty, Novosibirsk
Subject: [Dltk-dev] The problems do not appear in the Problems View
Hi all,
I am parsing the source code using my implementation of the AbstractSourceParser. In the method:
ModuleDeclaration parse(char[] fileName, char[] source, IProblemReporter reporter);
I am reporting problems like:
DefaultProblem problem = new DefaultProblem(
"my File",
"Syntax error: " + message,
IProblem.Unclassified,
new String[0],
ProblemSeverities.Error,
startIndex,
stopIndex,
line);
reporter.reportProblem(problem);
The error appears in the editor but not in the Problem View. Any ideas why, Did I forget to implement something?
I also have one more question regarding problem position. What is the purpose of line and column parameters in the DefaultProblem constructor? (I didn't manage to change anything in the problem position when I added those two parameters)
Thanks!
Gabriel
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev