Examples of SpellingEngineRegistry


Examples of at.bestsolution.efxclipse.text.editor.spelling.SpellingEngineRegistry

  private ScopedPreferenceStore preferenceStore;

  @Override
  public void start(BundleContext context) throws Exception {
    INSTANCE = this;
    spellingEngineRegistry= new SpellingEngineRegistry();
  }
View Full Code Here

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

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

   *
   * @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

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

   * @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

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

   * @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

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

   * @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

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

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

   *
   * @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

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

   * @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
Copyright © 2018 www.massapi.com. 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.