1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
12 package net.sourceforge.phpdt.internal.ui.text.spelling.engine;
17 * Event fired by spell-checkers.
21 public interface ISpellEvent {
24 * Returns the begin index of the incorrectly spelled word.
26 * @return The begin index of the word
28 public int getBegin();
31 * Returns the end index of the incorrectly spelled word.
33 * @return The end index of the word
38 * Returns the proposals for the incorrectly spelled word.
40 * @return Array of proposals for the word
42 public Set getProposals();
45 * Returns the incorrectly spelled word.
47 * @return The incorrect word
49 public String getWord();
52 * Was the incorrectly spelled word found in the dictionary?
54 * @return <code>true</code> iff the word was found, <code>false</code>
57 public boolean isMatch();
60 * Does the incorrectly spelled word start a new sentence?
62 * @return <code>true<code> iff the word starts a new sentence, <code>false</code> otherwise
64 public boolean isStart();