Package org.eclipse.ui.internal.texteditor.spelling

Examples of org.eclipse.ui.internal.texteditor.spelling.SpellingEngineRegistry


   * 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();
  }
View Full Code Here


   *
   * @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();
  }
View Full Code Here

   * @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;
  }
View Full Code Here

   * @since 3.0
   */
  public void start(BundleContext context) throws Exception {
    super.start(context);
    fQuickDiffExtensionRegistry= new QuickDiffExtensionsRegistry();
    fSpellingEngineRegistry= new SpellingEngineRegistry();
    Platform.getExtensionRegistry().addRegistryChangeListener(this, PLUGIN_ID);
  }
View Full Code Here

   * @since 3.0
   */
  public void start(BundleContext context) throws Exception {
    super.start(context);
    fQuickDiffExtensionRegistry= new QuickDiffExtensionsRegistry();
    fSpellingEngineRegistry= new SpellingEngineRegistry();
    Platform.getExtensionRegistry().addRegistryChangeListener(this, PLUGIN_ID);
  }
View Full Code Here

   * 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();
  }
View Full Code Here

   *
   * @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();
  }
View Full Code Here

   * @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;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.texteditor.spelling.SpellingEngineRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.