Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: bd29e60ae7af0a8cadcf7c49733ee21fdebbd003 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

package org.eclipse.ui.texteditor.spelling;

/**
 * A collector of {@link SpellingProblem}s. The {@link SpellingService} service
 * will report its results to such a collector.
 * <p>
 * An implementer may specify if a collector is thread aware, i.e., if problems
 * can be reported by any thread, potentially in parallel, and thus, multiple
 * reporting sessions may be active at the same time. Clients of concrete
 * collectors in turn must evaluate the usage of their collector and chose an
 * appropriate implementation.
 * </p>
 * <p>
 * This interface is intended to be implemented by clients.
 * </p>
 *
 * @see SpellingService
 * @since 3.1
 */
public interface ISpellingProblemCollector {

	/**
	 * Notification of a spelling problem.
	 *
	 * @param problem the spelling problem
	 */
	public void accept(SpellingProblem problem);

	/**
	 * Notification sent before starting to collect problems. This method
	 * will be called by the spelling infrastructure and is not intended
	 * to be called by clients.
	 */
	public void beginCollecting();

	/**
	 * Notification sent after completing to collect problems. This method
	 * will be called by the spelling infrastructure and is not intended
	 * to be called by clients.
	 */
	public void endCollecting();
}

Back to the top