*/
protected void runParserForCompiler(final IFile file, IProgressMonitor monitor)
{
try
{
HaxeParseController parseController = new HaxeParseController();
// TODO: Pick a version of the marker creator (or just go with this one)
//MarkerCreator markerCreator = new MarkerCreator(file,parseController, PROBLEM_MARKER_ID);
MarkerCreatorWithBatching markerCreator = new MarkerCreatorWithBatching(file, parseController, this);
parseController.getAnnotationTypeInfo().addProblemMarkerType(
getErrorMarkerID());
ISourceProject sourceProject = ModelFactory.open(file.getProject());
parseController.initialize(
file.getProjectRelativePath(),
sourceProject,
markerCreator);
String contents = BuilderUtils.getFileContents(file);
parseController.parse(contents, monitor);
if (markerCreator instanceof MarkerCreatorWithBatching)
{
((MarkerCreatorWithBatching) markerCreator).flush(monitor);
}