blob: e1703d9cc254ab1ffb40eee355a537293a65eb0f (
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
54
55
56
57
58
59
60
61
62
63
|
/*******************************************************************************
* Copyright (c) 2000, 2006 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
* Sergey Prigogin (Google)
*******************************************************************************/
package org.eclipse.cdt.internal.ui.text.spelling.engine;
import java.util.Set;
/**
* Event fired by spell checkers.
*/
public interface ISpellEvent {
/**
* Returns the begin index of the incorrectly spelled word.
*
* @return The begin index of the word
*/
public int getBegin();
/**
* Returns the end index of the incorrectly spelled word.
*
* @return The end index of the word
*/
public int getEnd();
/**
* Returns the proposals for the incorrectly spelled word.
*
* @return Array of proposals for the word
*/
public Set getProposals();
/**
* Returns the incorrectly spelled word.
*
* @return The incorrect word
*/
public String getWord();
/**
* Was the incorrectly spelled word found in the dictionary?
*
* @return <code>true</code> iff the word was found, <code>false</code> otherwise
*/
public boolean isMatch();
/**
* Does the incorrectly spelled word start a new sentence?
*
* @return <code>true<code> iff the word starts a new sentence, <code>false</code> otherwise
*/
public boolean isStart();
}
|