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;
15 import java.util.Locale;
17 import net.sourceforge.phpdt.internal.ui.text.phpdoc.IHtmlTagConstants;
18 import net.sourceforge.phpdt.internal.ui.text.phpdoc.IJavaDocTagConstants;
19 import net.sourceforge.phpdt.internal.ui.text.spelling.engine.LocaleSensitiveSpellDictionary;
23 * Dictionary used by the spell reconciling strategy.
27 public class SpellReconcileDictionary extends LocaleSensitiveSpellDictionary implements IJavaDocTagConstants, IHtmlTagConstants {
30 * Creates a new locale sensitive spell dictionary.
33 * The locale for this dictionary
35 * The location of the locale sensitive dictionaries
37 public SpellReconcileDictionary(final Locale locale, final URL location) {
38 super(locale, location);
42 * @see org.eclipse.jdt.internal.ui.text.spelling.engine.ISpellDictionary#isCorrect(java.lang.String)
44 public boolean isCorrect(final String word) {
46 final char character= word.charAt(0);
47 if (character != JAVADOC_TAG_PREFIX && character != HTML_TAG_PREFIX)
48 return super.isCorrect(word);