|
|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
package siprp;
|
|
|
|
|
|
|
|
|
|
import com.evolute.modules.spellchecker.EvoSpellChecker;
|
|
|
|
|
import com.evolute.modules.spellchecker.EvoSpellChecker.Dictionary;
|
|
|
|
|
import javax.swing.JTextArea;
|
|
|
|
|
import javax.swing.text.JTextComponent;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class SpellChecker
|
|
|
|
|
@ -9,11 +9,11 @@ public class SpellChecker
|
|
|
|
|
|
|
|
|
|
private static SpellChecker instance = null;
|
|
|
|
|
|
|
|
|
|
private final EvoSpellChecker spellChecker;
|
|
|
|
|
// private final EvoSpellChecker spellChecker;
|
|
|
|
|
|
|
|
|
|
private SpellChecker()
|
|
|
|
|
{
|
|
|
|
|
this.spellChecker = new EvoSpellChecker( Dictionary.PT_PT );
|
|
|
|
|
// this.spellChecker = new EvoSpellChecker( Dictionary.PT_PT );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static SpellChecker getInstance()
|
|
|
|
|
@ -24,10 +24,11 @@ public class SpellChecker
|
|
|
|
|
}
|
|
|
|
|
return instance;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public EvoSpellChecker getSpellChecker()
|
|
|
|
|
|
|
|
|
|
public void attachSpellCheckToComponent( JTextComponent fieldTextMedida )
|
|
|
|
|
{
|
|
|
|
|
return spellChecker;
|
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
// spellChecker.attachSpellCheckToComponent( fieldTextMedida )
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|