Package org.eclipse.jface.preference

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


        boolean isChecked = prefStore.getBoolean(id);
        setChecked(isChecked);
        if(addPreferenceListener) {
            this.store = prefStore;
            prefStore.addPropertyChangeListener(this);
        } else {
            this.store = null;
        }
    }
View Full Code Here


        {
            if (!initialised)
            {
                initialised = true;

                prefs.addPropertyChangeListener(this);

                String val = prefs.getString(SigilCore.OSGI_INSTALLS);

                boolean noAsk = prefs.getBoolean(SigilCore.PREFERENCES_NOASK_OSGI_INSTALL);
                if (val == null || val.trim().length() == 0)
View Full Code Here

    public void run() {
        final IPreferenceStore store = getPreferenceStore();
        final boolean show = isChecked();
        store.removePropertyChangeListener(this);
        store.setValue(getKey(), show);
        store.addPropertyChangeListener(this);
    }

    /**
     * Must be called to dispose this action.
     */
 
View Full Code Here

    }

    @Override
    protected IPreferenceStore doGetPreferenceStore() {
        final IPreferenceStore store = ErlideUIPlugin.getDefault().getPreferenceStore();
        store.addPropertyChangeListener(this);
        return store;
    }

    /**
     * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
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

     */
    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

        activityManager.addActivityManagerListener(activityManagerListener);

        IPreferenceStore store = WorkbenchPlugin.getDefault()
                .getPreferenceStore();
       
        store.addPropertyChangeListener(propertyChangeListener);       
    }

    /**
     * Hook the listener that will respond to any activity state changes.
     */
 
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

     */
    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

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.