1
/*******************************************************************************
2
* Copyright (c) 2009, 2010 Alena Laskavaia
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Alena Laskavaia - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.codan.core.model;
13
import org.eclipse.core.resources.IResource;
16
* IProblemReporterPersistent - interface to report problems, which are
17
* persistent, ex. markers. Also this object has context of checker and
18
* current resource, which allows to manage markers better - i.e. instead of
19
* deleting replace them when needed, and queue markers for insertion instead
23
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as part
24
* of a work in progress. There is no guarantee that this API will work or that
25
* it will remain the same.
30
public interface IProblemReporterSessionPersistent extends IProblemReporter {
32
* Deletes all problems associated with session resource and session checker.
33
* If "all" is true also delete all problems associated with workspace (and
37
public void deleteProblems(boolean all);
40
* Notifies that session is started.
45
* Notifies that session is ended.
49
IChecker getChecker();
51
IResource getResource();
54
* Create an instance of the object. This is a bit ugly since implemented has
55
* to combine the object itself and factory to this object.
62
public IProblemReporterSessionPersistent createReporter(IResource resource, IChecker checker);
b'\\ No newline at end of file'