Package org.eclipse.jface.preference

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


        if (rgbString != null)
          color = EditorUtility.getColor(ColorHelper.toRGB(rgbString));
        attribute = new TextAttribute(color, null, style);
      }

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


        setActivePage(0);

        IPreferenceStore store = EclipsePlugin.getDefault()
                .getPreferenceStore();
        store.addPropertyChangeListener(new IPropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent event) {
                String property = event.getProperty();

                if ((property == PreferenceConstants.BACKTRACK_ROOT)
                        || (property == PreferenceConstants.BACKTRACK_PREFIX)) {
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

            IPreferenceConstants.OVERRIDE_PRESENTATION)) {
          updateOverride();
        }
      }
    };
    store.addPropertyChangeListener(overrideListener);
  }

  /**
   * Dispose resources created by the receiver.
   */
 
View Full Code Here

    super.read();

    if (!preferenceListenerAttached) {
      final IPreferenceStore store = WorkbenchPlugin.getDefault()
          .getPreferenceStore();
      store.addPropertyChangeListener(preferenceChangeListener);
    }
  }

  /**
   * Constructs a new instance of {@link PreferencePersistence}. A preference
View Full Code Here

     */
    public void start(BundleContext context) throws Exception {
        super.start( context );
        IPreferenceStore preferenceStore = getPreferenceStore();
        useCachePreference = preferenceStore.getBoolean( IDroolsConstants.CACHE_PARSED_RULES );
        preferenceStore.addPropertyChangeListener( new IPropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent event) {
                if ( IDroolsConstants.CACHE_PARSED_RULES.equals( event.getProperty() ) ) {
                    useCachePreference = ((Boolean) event.getNewValue()).booleanValue();
                    if ( !useCachePreference ) {
                        clearCache();
View Full Code Here

     */
    public void start(BundleContext context) throws Exception {
        super.start( context );
        IPreferenceStore preferenceStore = getPreferenceStore();
        useCachePreference = preferenceStore.getBoolean( IDroolsConstants.CACHE_PARSED_RULES );
        preferenceStore.addPropertyChangeListener( new IPropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent event) {
                if ( IDroolsConstants.CACHE_PARSED_RULES.equals( event.getProperty() ) ) {
                    useCachePreference = ((Boolean) event.getNewValue()).booleanValue();
                    if ( !useCachePreference ) {
                        clearCache();
View Full Code Here

    public DRLReconcilingStrategy(ISourceViewer sourceViewer, final AbstractRuleEditor editor) {
        this.sourceViewer = sourceViewer;
        this.editor = editor;
        IPreferenceStore preferenceStore = DroolsEclipsePlugin.getDefault().getPreferenceStore();
        folding = preferenceStore.getBoolean(IDroolsConstants.EDITOR_FOLDING);
        preferenceStore.addPropertyChangeListener(new IPropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent event) {
                if (IDroolsConstants.EDITOR_FOLDING.equals(event.getProperty())) {
                    folding = ((Boolean) event.getNewValue()).booleanValue();
                    if (folding) {
                        reconcile();
View Full Code Here

            loadExistingTests();
          }
        }
      }
    };
    store.addPropertyChangeListener(propertyChangeListener);

    this.overlay = new Composite(parent, SWT.NULL);

    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 1;
View Full Code Here

          composite.redraw();
          composite.layout();
        }
      }
    };
    combinedStore.addPropertyChangeListener(propertyChangeListener);
    link.addDisposeListener(new DisposeListener() {
      public void widgetDisposed(org.eclipse.swt.events.DisposeEvent e) {
        combinedStore.removePropertyChangeListener(propertyChangeListener);
      }
    });
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.