~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemReporterSessionPersistent.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
7
 *
 
8
 * Contributors:
 
9
 *    Alena Laskavaia  - initial API and implementation
 
10
 *******************************************************************************/
 
11
package org.eclipse.cdt.codan.core.model;
 
12
 
 
13
import org.eclipse.core.resources.IResource;
 
14
 
 
15
/**
 
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
 
20
 * of add right away.
 
21
 *
 
22
 * <p>
 
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.
 
26
 * </p>
 
27
 *
 
28
 * @since 2.0
 
29
 */
 
30
public interface IProblemReporterSessionPersistent extends IProblemReporter {
 
31
        /**
 
32
         * Deletes all problems associated with session resource and session checker.
 
33
         * If "all" is true also delete all problems associated with workspace (and
 
34
         * session checker).
 
35
         *
 
36
         */
 
37
        public void deleteProblems(boolean all);
 
38
 
 
39
        /**
 
40
         * Notifies that session is started.
 
41
         */
 
42
        public void start();
 
43
 
 
44
        /**
 
45
         * Notifies that session is ended.
 
46
         */
 
47
        public void done();
 
48
 
 
49
        IChecker getChecker();
 
50
 
 
51
        IResource getResource();
 
52
 
 
53
        /**
 
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.
 
56
         *
 
57
         * @param resource
 
58
         * @param checker
 
59
         * @return
 
60
         * @since 2.0
 
61
         */
 
62
        public IProblemReporterSessionPersistent createReporter(IResource resource, IChecker checker);
 
63
}
 
 
b'\\ No newline at end of file'