/** * Returns all spelling engine descriptors from extensions to the * spelling engine extension point. * * @return all spelling engine descriptors */ public SpellingEngineDescriptor[] getSpellingEngineDescriptors() { SpellingEngineRegistry registry= getSpellingEngineRegistry(); if (registry == null) return new SpellingEngineDescriptor[0]; return registry.getDescriptors(); }
/** * Returns all spelling engine descriptors from extensions to the * spelling engine extension point. * * @return all spelling engine descriptors */ public SpellingEngineDescriptor[] getSpellingEngineDescriptors() { SpellingEngineRegistry registry= getSpellingEngineRegistry(); if (registry == null) return new SpellingEngineDescriptor[0]; return registry.getDescriptors(); }
/** * Returns the default spelling engine descriptor from extensions to * the spelling engine extension point. * * @return the default spelling engine descriptor or * <code>null</code> if none could be found */ public SpellingEngineDescriptor getDefaultSpellingEngineDescriptor() { SpellingEngineRegistry registry= getSpellingEngineRegistry(); if (registry == null) return null; return registry.getDefaultDescriptor(); }
/** * Returns all spelling engine descriptors from extensions to the * spelling engine extension point. * * @return all spelling engine descriptors */ public SpellingEngineDescriptor[] getSpellingEngineDescriptors() { SpellingEngineRegistry registry= getSpellingEngineRegistry(); if (registry == null) return new SpellingEngineDescriptor[0]; return registry.getDescriptors(); }
/** * Returns the default spelling engine descriptor from extensions to * the spelling engine extension point. * * @return the default spelling engine descriptor or * <code>null</code> if none could be found */ public SpellingEngineDescriptor getDefaultSpellingEngineDescriptor() { SpellingEngineRegistry registry= getSpellingEngineRegistry(); if (registry == null) return null; return registry.getDefaultDescriptor(); }
/** * Returns the default spelling engine descriptor from extensions to * the spelling engine extension point. * * @return the default spelling engine descriptor or * <code>null</code> if none could be found */ public SpellingEngineDescriptor getDefaultSpellingEngineDescriptor() { SpellingEngineRegistry registry= getSpellingEngineRegistry(); if (registry == null) return null; return registry.getDefaultDescriptor(); }
/** * Returns the descriptor of the active spelling engine based on the * value of the <code>PREFERENCE_SPELLING_ENGINE</code> preference * in the given preferences. * * @param preferences the preferences * @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; }
/** * Returns the descriptor of the active spelling engine based on the * value of the <code>PREFERENCE_SPELLING_ENGINE</code> preference * in the given preferences. * * @param preferences the preferences * @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; }
/** * Returns the descriptor of the active spelling engine based on the * value of the <code>PREFERENCE_SPELLING_ENGINE</code> preference * in the given preferences. * * @param preferences the preferences * @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; }