errorEnd = endLine.getOffset() + errorToken.endColumn;
}
message = parseErr.getMessage();
} else if (error instanceof TokenMgrError) {
TokenMgrError tokenErr = (TokenMgrError) error;
IRegion startLine = doc.getLineInformation(tokenErr.errorLine - 1);
errorStart = startLine.getOffset();
errorEnd = startLine.getOffset() + tokenErr.errorColumn;
message = tokenErr.getMessage();
} else {
Log.log("Error, expecting ParseException or TokenMgrError. Received: " + error);
return new ErrorDescription(null, 0, 0, 0);
}
errorLine = doc.getLineOfOffset(errorStart);