Package org.eclipse.jface.preference

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


    final IPreferenceStore preferenceStore = getPreferenceStore();
    manipulator.setUserAgent(preferenceStore.getString(IPreferenceConstants.P_USER_AGENT));
    manipulator.setUserAgentOverride(preferenceStore.getBoolean(IPreferenceConstants.P_USER_AGENT_OVERRIDE));
    manipulator.setBrowserCacheDisable(preferenceStore.getBoolean(IPreferenceConstants.P_DISABLE_BROWSER_CACHE));
    manipulator.setProxyCacheDisable(preferenceStore.getBoolean(IPreferenceConstants.P_DISABLE_PROXY_CACHE));
    preferenceStore.addPropertyChangeListener(new IPropertyChangeListener() {
      @Override
      public void propertyChange(PropertyChangeEvent event) {
        final IHttpProxyTransactionManipulator manipulator = getProxyService().getTransactionManipulator();
        final String property = event.getProperty();
        if (property == IPreferenceConstants.P_USER_AGENT) {
View Full Code Here


  public LogController() {
    IPreferenceStore store = Activator.getDefault().getPreferenceStore();
    store.setDefault(LogController.SOCKET_APPENDER_HOST_NAME_KEY, LogController.SOCKET_APPENDER_DEFAULT_HOST_NAME);
    store.setDefault(LogController.SOCKET_APPENDER_PORT_KEY, LogController.SOCKET_APPENDER_DEFAULT_PORT);
   
    store.addPropertyChangeListener( this );
    boolean appenderAdded = false;
   
    if (store.getBoolean(LogController.CONSOLE_APPENDER_KEY)) {
      addConsoleAppender();
      appenderAdded = true;
View Full Code Here

    public PythonBaseModelProvider() {
        PythonNatureListenersManager.addPythonNatureListener(this);
        PydevPlugin plugin = PydevPlugin.getDefault();
        if (plugin != null) {
            IPreferenceStore preferenceStore = plugin.getPreferenceStore();
            preferenceStore.addPropertyChangeListener(this);
        }

        //just leave it created
        topLevelChoice = new TopLevelProjectsOrWorkingSetChoice();
    }
View Full Code Here

     */
    public static char[] getStaticCompletionProposalAutoActivationCharacters() {
        if (!listenerToClearAutoActivationAlreadySetup) {
            //clears the cache when the preferences are changed.
            IPreferenceStore preferenceStore = PydevPlugin.getDefault().getPreferenceStore();
            preferenceStore.addPropertyChangeListener(new IPropertyChangeListener() {

                public void propertyChange(PropertyChangeEvent event) {
                    activationChars = null; //clear the cache when it changes
                }

View Full Code Here

        private WeakReference<CustomFilters> weakCustomFilter;

        public PropertyListener(CustomFilters customFilter) {
            weakCustomFilter = new WeakReference<CustomFilters>(customFilter);
            IPreferenceStore prefs = PydevPlugin.getDefault().getPreferenceStore();
            prefs.addPropertyChangeListener(this);
        }

        public void propertyChange(PropertyChangeEvent event) {
            CustomFilters customFilters = weakCustomFilter.get();
            if (customFilters == null) {
View Full Code Here

     */
    private SingleJobRunningPool jobPool = new SingleJobRunningPool();

    private PyEditTitle() {
        IPreferenceStore preferenceStore = PydevPlugin.getDefault().getPreferenceStore();
        preferenceStore.addPropertyChangeListener(this);
    }

    public void propertyChange(PropertyChangeEvent event) {
        //When the
        String property = event.getProperty();
View Full Code Here

        sourceViewerConfigurationObj[0] = new WeakReference<PyEditConfigurationWithoutEditor>(sourceViewerConfiguration);
        sourceViewer.configure(sourceViewerConfiguration);

        IPropertyChangeListener prefChangeListener = PyEdit.createPrefChangeListener(editor);
        getPrefChangeListeners().add(prefChangeListener);
        chainedPrefStore.addPropertyChangeListener(prefChangeListener);
    }

    @Override
    protected void handleDispose(DisposeEvent event) {
        super.handleDispose(event);
View Full Code Here

    public TaskView() {
        IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore();
        ipAddress = preferenceStore.getString(DroolsTaskConstants.SERVER_IP_ADDRESS);
        port = preferenceStore.getInt(DroolsTaskConstants.SERVER_PORT);
        language = preferenceStore.getString(DroolsTaskConstants.LANGUAGE);
        preferenceStore.addPropertyChangeListener(new IPropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent event) {
                if (DroolsTaskConstants.SERVER_IP_ADDRESS.equals(event.getProperty())) {
                    ipAddress = (String) event.getNewValue();
                } else if (DroolsTaskConstants.SERVER_PORT.equals(event.getProperty())) {
                    port = (Integer) event.getNewValue();
View Full Code Here

      @Override
      public void propertyChange(PropertyChangeEvent event) {
        initializeLogPanelColors();
      }
    };
    prefs.addPropertyChangeListener(prefsListener);

        // page up/down in input area should control log
        viewerWidget.setKeyBinding(SWT.PAGE_DOWN, SWT.NULL);
        viewerWidget.setKeyBinding(SWT.PAGE_UP, SWT.NULL);
        viewerWidget.addListener(SWT.KeyDown, new Listener () {
View Full Code Here

        }
      }
    };

    IPreferenceStore store = Activator.getDefault().getPreferenceStore();
    store.addPropertyChangeListener(listener);
    fill = store
        .getBoolean(UIPreferences.RESOURCEHISTORY_SHOW_COMMENT_FILL);

    // global action handlers for select all and copy
    final IAction selectAll = new Action() {
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.