/** * Creates a spelling engine based on the value of the * <code>PREFERENCE_SPELLING_ENGINE</code> preference in the given * preferences. * * @param preferences the preferences * @return the created spelling engine or <code>null</code> if none * could be created * @throws CoreException if the creation failed * @see SpellingService#PREFERENCE_SPELLING_ENGINE */ private ISpellingEngine createEngine(IPreferenceStore preferences) throws CoreException { SpellingEngineDescriptor descriptor= getActiveSpellingEngineDescriptor(preferences); if (descriptor != null) return descriptor.createEngine(); return null; }
/** * Creates a spelling engine based on the value of the * <code>PREFERENCE_SPELLING_ENGINE</code> preference in the given * preferences. * * @param preferences the preferences * @return the created spelling engine or <code>null</code> if none * could be created * @throws CoreException if the creation failed * @see SpellingService#PREFERENCE_SPELLING_ENGINE */ private ISpellingEngine createEngine(IPreferenceStore preferences) throws CoreException { SpellingEngineDescriptor descriptor= getActiveSpellingEngineDescriptor(preferences); if (descriptor != null) return descriptor.createEngine(); return null; }
/** * Creates a spelling engine based on the value of the * <code>PREFERENCE_SPELLING_ENGINE</code> preference in the given * preferences. * * @param preferences the preferences * @return the created spelling engine or <code>null</code> if none * could be created * @throws CoreException if the creation failed * @see SpellingService#PREFERENCE_SPELLING_ENGINE */ private ISpellingEngine createEngine(IPreferenceStore preferences) throws CoreException { SpellingEngineDescriptor descriptor= getActiveSpellingEngineDescriptor(preferences); if (descriptor != null) return descriptor.createEngine(); return null; }