} else if (re instanceof FailedPredicateException) {
String[] messages = { "Syntax Error:" + message, message };
if (message == null) {
messages[0] = re.toString();
}
DLTKToken convert = this.converter.convert(re.token);
int st = convert.getColumn();
int et = convert.getColumn() + convert.getText().length();
// reporter.handle(CompilerOptions.OFFSET, messages, messages,
// st, et);
DefaultProblem defaultProblem = new DefaultProblem("", "Type not defined in this script: "
+ convert.getText(), 0, new String[] {}, ProblemSeverities.Warning, st, et,
re.token.getLine());
if (!problems.contains(defaultProblem)) {
reporter.reportProblem(defaultProblem);
problems.add(defaultProblem);
System.out.println(messages[0] + " ### line " + re.token.getLine());
}
} else {
String[] messages = { "Syntax Error:" + message, message };
if (message == null) {
messages[0] = re.toString();
}
DLTKToken convert = this.converter.convert(re.token);
int st = convert.getColumn();
int et = convert.getColumn() + convert.getText().length();
// reporter.handle(CompilerOptions.OFFSET, messages, messages,
// st, et);
DefaultProblem defaultProblem = new DefaultProblem("", messages[0], 0, new String[] {},
ProblemSeverities.Error, st, et, re.token.getLine());
if (!problems.contains(defaultProblem)) {