X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/internal/ui/text/spelling/SpellReconcileDictionary.java b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/internal/ui/text/spelling/SpellReconcileDictionary.java new file mode 100644 index 0000000..4e3530c --- /dev/null +++ b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/internal/ui/text/spelling/SpellReconcileDictionary.java @@ -0,0 +1,52 @@ +/******************************************************************************* + * Copyright (c) 2000, 2003 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ + +package net.sourceforge.phpdt.internal.ui.text.spelling; + +import java.net.URL; +import java.util.Locale; + +import net.sourceforge.phpdt.internal.ui.text.phpdoc.IHtmlTagConstants; +import net.sourceforge.phpdt.internal.ui.text.phpdoc.IJavaDocTagConstants; +import net.sourceforge.phpdt.internal.ui.text.spelling.engine.LocaleSensitiveSpellDictionary; + +/** + * Dictionary used by the spell reconciling strategy. + * + * @since 3.0 + */ +public class SpellReconcileDictionary extends LocaleSensitiveSpellDictionary + implements IJavaDocTagConstants, IHtmlTagConstants { + + /** + * Creates a new locale sensitive spell dictionary. + * + * @param locale + * The locale for this dictionary + * @param location + * The location of the locale sensitive dictionaries + */ + public SpellReconcileDictionary(final Locale locale, final URL location) { + super(locale, location); + } + + /* + * @see net.sourceforge.phpdt.internal.ui.text.spelling.engine.ISpellDictionary#isCorrect(java.lang.String) + */ + public boolean isCorrect(final String word) { + + final char character = word.charAt(0); + if (character != JAVADOC_TAG_PREFIX && character != HTML_TAG_PREFIX) + return super.isCorrect(word); + + return false; + } +}