Examples of removePreferenceChangeListener()


Examples of java.util.prefs.Preferences.removePreferenceChangeListener()

    }

    public void dispose() {
        super.dispose();
        Preferences prefs = Application.getPreferences();
        prefs.removePreferenceChangeListener(this);
    }
}
View Full Code Here

Examples of java.util.prefs.Preferences.removePreferenceChangeListener()

    } catch (BackingStoreException e2) {
    }
    p.addNodeChangeListener(null);
    p.addPreferenceChangeListener(null);
    p.removeNodeChangeListener(null);
    p.removePreferenceChangeListener(null);
    try {
      p.sync();
    } catch (BackingStoreException e3) {
    }
    p.toString();
View Full Code Here

Examples of java.util.prefs.Preferences.removePreferenceChangeListener()

        } catch (BackingStoreException e2) {
        }
        p.addNodeChangeListener(null);
        p.addPreferenceChangeListener(null);
        p.removeNodeChangeListener(null);
        p.removePreferenceChangeListener(null);
        try {
            p.sync();
        } catch (BackingStoreException e3) {
        }
        p.toString();
View Full Code Here

Examples of java.util.prefs.Preferences.removePreferenceChangeListener()

      assertTrue(done.poll(1, TimeUnit.SECONDS));
    } catch (InterruptedException e) {
      e.printStackTrace();
      fail();
    }
    prefs.removePreferenceChangeListener(pcl);
    prefs.put(key, "Baz");
    try {
      assertNull(done.poll(200, TimeUnit.MILLISECONDS));
    } catch (InterruptedException e) {
      e.printStackTrace();
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IEclipsePreferences.removePreferenceChangeListener()

        if (sourceViewer instanceof IDisposable) {
            ((IDisposable) sourceViewer).dispose();
        }

        final IEclipsePreferences node = ErlideUIPlugin.getPrefsNode();
        node.removePreferenceChangeListener(fPreferenceChangeListener);
        ErlideUIPlugin.getDefault().getPreferenceStore()
                .removePropertyChangeListener(propertyChangeListener);
        if (fActionGroups != null) {
            fActionGroups.dispose();
            fActionGroups = null;
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IEclipsePreferences.removePreferenceChangeListener()

    public void unconfigure() {
        if (sourceViewer instanceof ITextViewerExtension) {
            ((ITextViewerExtension) sourceViewer).removeVerifyKeyListener(this);
        }
        final IEclipsePreferences node = ErlideUIPlugin.getPrefsNode();
        node.removePreferenceChangeListener(fPreferenceChangeListener);
    }

    void setValidator(final IBracketInserterValidator validator) {
        this.validator = validator;
    }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IEclipsePreferences.removePreferenceChangeListener()

    }

    @Override
    public void dispose() {
        final IEclipsePreferences node = CodeAssistPreferences.getNode();
        node.removePreferenceChangeListener(fPreferenceChangeListener);
    }

}
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IEclipsePreferences.removePreferenceChangeListener()

    IEclipsePreferences preferences = getStorePreferences();
    if (preferences == null) {
      return;
    }
    if (preferencesListener != null) {
      preferences.removePreferenceChangeListener(preferencesListener);
      preferencesListener = null;
    }
  }

}
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IEclipsePreferences.removePreferenceChangeListener()

    if (this.indexManager != null) {
      this.indexManager.shutdown();
    }

    // Stop listening to preferences changes
    preferences.removePreferenceChangeListener(this.propertyListener);
    ((IEclipsePreferences) this.preferencesLookup[PREF_DEFAULT].parent()).removeNodeChangeListener(this.defaultNodeListener);
    this.preferencesLookup[PREF_DEFAULT] = null;
    ((IEclipsePreferences) this.preferencesLookup[PREF_INSTANCE].parent()).removeNodeChangeListener(this.instanceNodeListener);
    this.preferencesLookup[PREF_INSTANCE].removePreferenceChangeListener(this.instancePreferencesListener);
    this.preferencesLookup[PREF_INSTANCE] = null;
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IEclipsePreferences.removePreferenceChangeListener()

  public void dispose() {
    // TODO(leeca): What does this do?
    // listen the changes in the configuration
    IEclipsePreferences prefs = PreferencesIds.getInstanceNode();
    prefs.removePreferenceChangeListener(this);
  }

  @Override
  public void preferenceChange(PreferenceChangeEvent event) {
    // changes in the configuration for the views, so redraw the graph.
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.