mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Added a TODO.
This commit is contained in:
parent
7f914e4a6a
commit
2e36f9b4ca
1 changed files with 3 additions and 4 deletions
|
@ -25,9 +25,7 @@ import org.eclipse.core.runtime.OperationCanceledException;
|
||||||
* implementation for common methods.
|
* implementation for common methods.
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractChecker implements IChecker {
|
public abstract class AbstractChecker implements IChecker {
|
||||||
/**
|
private static final Object[] EMPTY_OBJECT_ARRAY = {};
|
||||||
* @since 2.0
|
|
||||||
*/
|
|
||||||
private ICheckerInvocationContext context;
|
private ICheckerInvocationContext context;
|
||||||
private IProblemReporter problemReporter;
|
private IProblemReporter problemReporter;
|
||||||
|
|
||||||
|
@ -111,7 +109,7 @@ public abstract class AbstractChecker implements IChecker {
|
||||||
* - line
|
* - line
|
||||||
*/
|
*/
|
||||||
public void reportProblem(String id, IFile file, int lineNumber) {
|
public void reportProblem(String id, IFile file, int lineNumber) {
|
||||||
getProblemReporter().reportProblem(id, createProblemLocation(file, lineNumber), new Object[] {});
|
getProblemReporter().reportProblem(id, createProblemLocation(file, lineNumber), EMPTY_OBJECT_ARRAY);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -204,6 +202,7 @@ public abstract class AbstractChecker implements IChecker {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void before(IResource resource) {
|
public void before(IResource resource) {
|
||||||
|
// TODO(sprigogin): Use a problem reporter creating non-persistent editor annotations when running in editor.
|
||||||
IProblemReporter reporter = CodanRuntime.getInstance().getProblemReporter();
|
IProblemReporter reporter = CodanRuntime.getInstance().getProblemReporter();
|
||||||
problemReporter = reporter;
|
problemReporter = reporter;
|
||||||
if (reporter instanceof IProblemReporterSessionPersistent) {
|
if (reporter instanceof IProblemReporterSessionPersistent) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue