Package org.eclipse.jface.preference

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


//            if(getMyPreferenceStore().getBoolean(PreferenceConstants.P_CONTACTLIST_AUTOOPEN) &&
//                !getMyPreferenceStore().getBoolean(PreferenceConstants.P_CONTACTLIST_ALLACCOUNTS))
//              openContactList(getMyPreferenceStore().getString(PreferenceConstants.P_CONTACTLIST),(GOIMAccount)event.source);
        }});
    if(propertyChangeListener == null)
      store.addPropertyChangeListener(propertyChangeListener = new IPropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent event) {
          logger.finest("Property changed: " + event.getProperty());
          if(accountList.size() > 0 && getMyPreferenceStore().getBoolean(PreferenceConstants.P_CONTACTLIST_AUTOOPEN)) {
            if(event.getProperty().equals(PreferenceConstants.P_CONTACTLIST)) {
              int code = -1;
View Full Code Here


          }
        }
      }
    });
   
    prefStore.addPropertyChangeListener(preferenceStoreChangeListener);
   
    // Note: In case the CAS could not be created the editor will be initialized with
    // a null document (getDocument() == null). Depending on the error it might be
    // possible to recover and the editor input will be set again. The createPartControl
    // method might be called with a document or without one, both cases must be supported.
View Full Code Here

        /**
         * Register for our preference store, so we can be notified if the Skype
         * Username changes.
         */
        IPreferenceStore prefs = saros.getPreferenceStore();
        prefs.addPropertyChangeListener(new IPropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent event) {
                if (event.getProperty().equals(
                    PreferenceConstants.SKYPE_USERNAME)) {
                    publishSkypeIQ(event.getNewValue().toString());
                }
View Full Code Here

          }
        }
        attribute = new TextAttribute(color, bgColor, style);
      }

      store.addPropertyChangeListener(fHighlightingChangeListener);
      boolean isEnabled = getBoolean(store, highlighting.getEnabledPreferenceKey());
      highlightingStyle = new HighlightingStyle(attribute, isEnabled);
    }
    return highlightingStyle;
  }
View Full Code Here

  }

  protected void registerPreferenceManager() {
    IPreferenceStore pref = getColorPreferences();
    if (pref != null) {
      pref.addPropertyChangeListener(fPreferenceListener);
    }
  }

  public void release() {
    unRegisterPreferenceManager();
View Full Code Here

   */
  public void install(ITextViewer newTextViewer) {
    this.textViewer = newTextViewer;

    IPreferenceStore editorStore = SSEUIPlugin.getDefault().getPreferenceStore();
    editorStore.addPropertyChangeListener(fForegroundScaleListener);
    readOnlyForegroundScaleFactor = editorStore.getInt(EditorPreferenceNames.READ_ONLY_FOREGROUND_SCALE);

    if (textWidget != null) {
      textWidget.removeLineStyleListener(this);
    }
View Full Code Here

   */
  private IPreferenceStore getJavaPreferenceStore() {
    IPreferenceStore store = PreferenceConstants.getPreferenceStore();
    if (fJavaPreferenceListener == null) {
      fJavaPreferenceListener = new PreferenceListener();
      store.addPropertyChangeListener(fJavaPreferenceListener);
    }
    return store;
  }

  /**
 
View Full Code Here

  };

  public AbstractSyntaxColoringPage() {
    final IPreferenceStore store = EditorsUI.getPreferenceStore();
    if (store != null) {
      store.addPropertyChangeListener(fListener);
    }
  }

  /**
   * Initializes the colors of the source preview window based on the values in the Editors' UI preference store
View Full Code Here

  public void initialize() {
    IPreferenceStore store = JSPUIPlugin.getInstance().getPreferenceStore();
    fCloseStrings = store.getBoolean(JSPUIPreferenceNames.TYPING_CLOSE_STRINGS);
    fCloseBrackets = store.getBoolean(JSPUIPreferenceNames.TYPING_CLOSE_BRACKETS);
    store.addPropertyChangeListener(this);
  }

  public void dispose() {
    JSPUIPlugin.getInstance().getPreferenceStore().removePropertyChangeListener(this);
  }
View Full Code Here

  public void initialize() {
    IPreferenceStore store = XMLUIPlugin.getInstance().getPreferenceStore();
    fCloseStrings = store.getBoolean(XMLUIPreferenceNames.TYPING_CLOSE_STRINGS);
    fCloseBrackets = store.getBoolean(XMLUIPreferenceNames.TYPING_CLOSE_BRACKETS);
    store.addPropertyChangeListener(this);
  }

  public void dispose() {
    XMLUIPlugin.getInstance().getPreferenceStore().removePropertyChangeListener(this);
  }
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.