Examples of ISpellingPreferenceBlock


Examples of org.eclipse.ui.texteditor.spelling.ISpellingPreferenceBlock

    final boolean enabled= fEnablementCheckbox.getSelection();
    if (fComboGroup != null)
      setEnabled(fComboGroup, enabled);
    SpellingEngineDescriptor desc= EditorsUI.getSpellingService().getActiveSpellingEngineDescriptor(fStore);
    String id= desc != null ? desc.getId() : ""; //$NON-NLS-1$
    final ISpellingPreferenceBlock preferenceBlock= (ISpellingPreferenceBlock) fProviderPreferences.get(id);
    if (preferenceBlock != null) {
      ISafeRunnable runnable= new ISafeRunnable() {
        public void run() throws Exception {
          preferenceBlock.setEnabled(enabled);
        }
        public void handleException(Throwable x) {
        }
      };
      SafeRunner.run(runnable);
View Full Code Here

Examples of org.eclipse.ui.texteditor.spelling.ISpellingPreferenceBlock

  }

  public boolean canPerformOk() {
    SpellingEngineDescriptor desc= EditorsUI.getSpellingService().getActiveSpellingEngineDescriptor(fStore);
    String id= desc != null ? desc.getId() : ""; //$NON-NLS-1$
    final ISpellingPreferenceBlock block= (ISpellingPreferenceBlock) fProviderPreferences.get(id);
    if (block == null)
      return true;

    final Boolean[] result= new Boolean[] { Boolean.TRUE };
    ISafeRunnable runnable= new ISafeRunnable() {
      public void run() throws Exception {
        result[0]= Boolean.valueOf(block.canPerformOk());
      }
      public void handleException(Throwable x) {
      }
    };
    SafeRunner.run(runnable);
View Full Code Here

Examples of org.eclipse.ui.texteditor.spelling.ISpellingPreferenceBlock

    return result[0].booleanValue();
  }

  public void performOk() {
    for (Iterator it= fProviderPreferences.values().iterator(); it.hasNext();) {
      final ISpellingPreferenceBlock block= (ISpellingPreferenceBlock) it.next();
      ISafeRunnable runnable= new ISafeRunnable() {
        public void run() throws Exception {
          block.performOk();
        }
        public void handleException(Throwable x) {
        }
      };
      SafeRunner.run(runnable);
View Full Code Here

Examples of org.eclipse.ui.texteditor.spelling.ISpellingPreferenceBlock

  }

  public void performDefaults() {
    restoreFromPreferences();
    for (Iterator it= fProviderPreferences.values().iterator(); it.hasNext();) {
      final ISpellingPreferenceBlock block= (ISpellingPreferenceBlock) it.next();
      ISafeRunnable runnable= new ISafeRunnable() {
        public void run() throws Exception {
          block.performDefaults();
        }
        public void handleException(Throwable x) {
        }
      };
      SafeRunner.run(runnable);
View Full Code Here

Examples of org.eclipse.ui.texteditor.spelling.ISpellingPreferenceBlock

    }
  }

  public void dispose() {
    for (Iterator it= fProviderPreferences.values().iterator(); it.hasNext();) {
      final ISpellingPreferenceBlock block= (ISpellingPreferenceBlock) it.next();
      ISafeRunnable runnable= new ISafeRunnable() {
        public void run() throws Exception {
          block.dispose();
        }
        public void handleException(Throwable x) {
        }
      };
      SafeRunner.run(runnable);
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.