Examples of IPropertyChangeListener


Examples of org.eclipse.jface.util.IPropertyChangeListener

      if (viewer != null) {
        viewer.getControl().dispose();
      }
      this.config = configuration;
      viewer = new TreeViewer(owner);
      listener = new IPropertyChangeListener() {

        public void propertyChange(PropertyChangeEvent event) {
          if (event.getProperty().equals(
              IPreferenceConstants.SHOW_PATH)) {
            showPath = getPreferenceStore().getBoolean(
View Full Code Here

Examples of org.eclipse.jface.util.IPropertyChangeListener

   
    // We want to store M2_REPO property into java classpath vars
    ScopedPreferenceStore store = new ScopedPreferenceStore(
        new InstanceScope(), "org.eclipse.jdt.core");
    m2Repo.setPreferenceStore(store);
    store.addPropertyChangeListener(new IPropertyChangeListener(){
      @Override
      public void propertyChange(PropertyChangeEvent event) {
        // We want to erase the value if the M2_REPO was deleted from the classpath variables ui...
        if( event.getProperty().equals(PreferencesConstants.M2_REPO)) {
          m2Repo.load();
View Full Code Here

Examples of org.eclipse.jface.util.IPropertyChangeListener

    Label colorText = new Label(settingsComposite, SWT.NONE);
    colorText.setText("Color:");

    mColorSelector = new ColorSelector(settingsComposite);
    mColorSelector.setEnabled(false);
    mColorSelector.addListener(new IPropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent event) {
        if (mCurrentSelectedAnnotation == null) {
          mCurrentSelectedAnnotation = getDefaultAnnotation();
        }
View Full Code Here

Examples of org.eclipse.jface.util.IPropertyChangeListener

            }
        });

        prefStoreHelper = new IvyDEPreferenceStoreHelper(getPreferenceStore());

        propertyListener = new IPropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent event) {
                try {
                    if (PreferenceConstants.ALL.contains(event.getProperty())) {
                        prefStoreChanged();
                    }
View Full Code Here

Examples of org.eclipse.jface.util.IPropertyChangeListener

            public void selectionChanged( SelectionChangedEvent event )
            {
                handleSyntaxItemViewerSelectionEvent();
            }
        } );
        colorSelector.addListener( new IPropertyChangeListener()
        {
            public void propertyChange( PropertyChangeEvent event )
            {
                handleColorSelectorEvent();
            }
View Full Code Here

Examples of org.eclipse.jface.util.IPropertyChangeListener

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

Examples of org.eclipse.jface.util.IPropertyChangeListener

    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

Examples of org.eclipse.jface.util.IPropertyChangeListener

    statusLineManager.add(new Separator("halo"));
    statusLineManager.appendToGroup("halo", label);
   
      statusLineManager.update(true);
     
      HaloStatusPlugin.getPlugin().getPreferenceStore().addPropertyChangeListener(new IPropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent event) {
        if (HaloStatusPlugin.PLAYER_COUNT_PREF.equals(event.getProperty()))
          setHaloStatus(label, (String)event.getNewValue());
      }
      });
View Full Code Here

Examples of org.eclipse.jface.util.IPropertyChangeListener

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

Examples of org.eclipse.jface.util.IPropertyChangeListener

        final PropertyChangeEvent event = new PropertyChangeEvent(this,
                changeId, oldValue, newValue);
    Runnable notifier = new Runnable() {
      public void run() {
        for (int i = 0; i < listeners.length; i++) {
          final IPropertyChangeListener listener = (IPropertyChangeListener) listeners[i];
          ISafeRunnable safetyWrapper = new ISafeRunnable() {

            public void run() throws Exception {
              listener.propertyChange(event);
            }

            public void handleException(Throwable exception) {
              // logged by the runner
            }
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.