* @return the descriptor of the active spelling engine or
* <code>null</code> if none could be found
* @see SpellingService#PREFERENCE_SPELLING_ENGINE
*/
public SpellingEngineDescriptor getActiveSpellingEngineDescriptor(IPreferenceStore preferences) {
SpellingEngineRegistry registry= getSpellingEngineRegistry();
if (registry == null)
return null;
SpellingEngineDescriptor descriptor= null;
if (preferences.contains(PREFERENCE_SPELLING_ENGINE))
descriptor= registry.getDescriptor(preferences.getString(PREFERENCE_SPELLING_ENGINE));
if (descriptor == null)
descriptor= registry.getDefaultDescriptor();
return descriptor;
}