Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.IPreferenceStore.removePropertyChangeListener()


    /* Remove the property change listener before clearing the lists */
    if (fHighlightings != null) {
      for (int i = 0; i < fHighlightings.length; i++) {
        IPreferenceStore store = fHighlightings[i].getPreferenceStore();
        if (store != null)
          store.removePropertyChangeListener(fHighlightingChangeListener);
      }
    }
   
    fHighlightings = null;
    fHighlightingStyles = null;
View Full Code Here


  }

  protected void unRegisterPreferenceManager() {
    IPreferenceStore pref = getColorPreferences();
    if (pref != null) {
      pref.removePropertyChangeListener(fPreferenceListener);
    }
  }
}
View Full Code Here

    if (document != null)
      document.removeDocumentListener(this);

    IPreferenceStore preferenceStore = getNewPreferenceStore();
    if (preferenceStore != null)
      preferenceStore.removePropertyChangeListener(this);

    StyledText text = textViewer.getTextWidget();
    if (text == null || text.isDisposed())
      return;
View Full Code Here

        iterator.remove();
      }
    }

    IPreferenceStore editorStore = SSEUIPlugin.getDefault().getPreferenceStore();
    editorStore.removePropertyChangeListener(fForegroundScaleListener);
    disposeColorTable();

    // clear out cached variables (d282894)
    fSavedOffset = -1;
    fSavedLength = -1;
View Full Code Here

      fSelectionBackgroundColor = null;
    }
    if (fListener != null) {
      final IPreferenceStore store = EditorsUI.getPreferenceStore();
      if (store != null) {
        store.removePropertyChangeListener(fListener);
      }
    }
    super.dispose();
  }
View Full Code Here

    /* Remove the property change listener before clearing the lists */
    if (fHighlightings != null) {
      for (int i = 0; i < fHighlightings.length; i++) {
        IPreferenceStore store = fHighlightings[i].getPreferenceStore();
        if (store != null)
          store.removePropertyChangeListener(fHighlightingChangeListener);
      }
    }
   
    fHighlightings = null;
    fHighlightingStyles = null;
View Full Code Here

    CasDocumentProvider provider = getCasDocumentProvider();
   
    if (provider != null) {
      IPreferenceStore store = provider.getTypeSystemPreferenceStore(getEditorInput());
      if (store != null)
        store.removePropertyChangeListener(mAnnotationStyleListener);
    }
   
    if (preferenceStoreChangeListener != null)
      CasEditorPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(preferenceStoreChangeListener);
   
View Full Code Here

    if (editors.length == 0) {
      if (editorPropChangeListnener != null) {
        // remove property change listener for editors
        IPreferenceStore prefStore = WorkbenchPlugin.getDefault()
            .getPreferenceStore();
        prefStore
            .removePropertyChangeListener(editorPropChangeListnener);
        editorPropChangeListnener = null;
      }
      if (pinEditorHandlerActivation != null) {
        // remove pin editor keyboard shortcut handler
View Full Code Here

  public final void dispose() {
    super.dispose();

    final IPreferenceStore store = WorkbenchPlugin.getDefault()
        .getPreferenceStore();
    store.removePropertyChangeListener(preferenceChangeListener);
  }

  /**
   * Checks whether the preference change could affect this persistence class.
   *
 
View Full Code Here

      }
    };
    combinedStore.addPropertyChangeListener(propertyChangeListener);
    link.addDisposeListener(new DisposeListener() {
      public void widgetDisposed(org.eclipse.swt.events.DisposeEvent e) {
        combinedStore.removePropertyChangeListener(propertyChangeListener);
      }
    });
  }

  private String getIndentMode() {
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.