Example usage for org.eclipse.jdt.internal.core.builder JavaBuilder getTasksFor

List of usage examples for org.eclipse.jdt.internal.core.builder JavaBuilder getTasksFor

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core.builder JavaBuilder getTasksFor.

Prototype

public static IMarker[] getTasksFor(IResource resource) 

Source Link

Usage

From source file:org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.java

License:Open Source License

protected void updateTasksFor(SourceFile sourceFile, CompilationResult result) throws CoreException {
    IMarker[] markers = JavaBuilder.getTasksFor(sourceFile.resource);
    CategorizedProblem[] tasks = result.getTasks();
    if (tasks == null && markers.length == 0)
        return;/*  www  .  ja v  a 2s .com*/

    JavaBuilder.removeTasksFor(sourceFile.resource);
    storeTasksFor(sourceFile, tasks);
}