Package org.eclipse.jface.util

Examples of org.eclipse.jface.util.PropertyChangeEvent


        // Add a modify listener on the text control.
        textDefinition.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent e) {
                Object oldValue = null;
                Object newValue = textDefinition.getText();
                PropertyChangeEvent propertyChange = new PropertyChangeEvent(
                        textDefinition, controlDetails.attribute, oldValue, newValue);
                controlDetails.attributesComposite.
                        propertyChange(propertyChange);
            }
        });
View Full Code Here


        cellIterations.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent event) {
                Object oldValue = null;
                Object newValue = cellIterations.getIterationsQualifier();
                PropertyChangeEvent propertyChange = new PropertyChangeEvent(
                        cellIterations, supplementary, oldValue, newValue);
                controlDetails.attributesComposite.propertyChange(propertyChange);
            }
        });

        // Add an accessible listener
        addAccessibleListener(cellIterations, controlDetails);

        // Add a modify listener to this control (for the text value).
        cellIterations.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent e) {
                Object oldValue = null;
                Object newValue = cellIterations.getIterations();
                PropertyChangeEvent propertyChange = new PropertyChangeEvent(
                        cellIterations, controlDetails.attribute, oldValue, newValue);
                controlDetails.attributesComposite.
                        propertyChange(propertyChange);
            }
        });
View Full Code Here

        combo.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent event) {
                Object oldValue = null;
                Object newValue = combo.getItem(combo.getSelectionIndex());
                PropertyChangeEvent propertyChange = new PropertyChangeEvent(
                        combo, controlDetails.attribute, oldValue, newValue);
                controlDetails.attributesComposite.propertyChange(propertyChange);
            }
        });
View Full Code Here

        combo.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent e) {
                Object oldValue = null;
                Object newValue = combo.getValue();
                PropertyChangeEvent propertyChange = new PropertyChangeEvent(
                        combo, controlDetails.attribute, oldValue, newValue);
                controlDetails.attributesComposite.
                        propertyChange(propertyChange);
            }
        });
View Full Code Here

            this.attribute = attribute;
        }

        public void handleEvent(Event e) {
            Object value = attributesComposite.getAttributeValue(attribute);
            PropertyChangeEvent event = new PropertyChangeEvent(
                    attributesComposite.getData(attribute), attribute, null,
                    value);
            attributesComposite.propertyChange(event);
        }
View Full Code Here

   * @param newValue
   */
  private void firePropertyChange(IEvaluationReference ref, Object oldValue,
      Object newValue) {
    ref.getListener().propertyChange(
        new PropertyChangeEvent(ref, ref.getProperty(), oldValue,
            newValue));
  }
View Full Code Here

        public void handleException(Throwable exception) {
          WorkbenchPlugin.log(exception);
        }

        public void run() throws Exception {
          listener.propertyChange(new PropertyChangeEvent(
              EvaluationAuthority.this, property, oldValue,
              newValue));
        }
      });
    }
View Full Code Here

  }

  protected void firePropertyChange(String changeId, ITheme oldTheme,
      ITheme newTheme) {

    PropertyChangeEvent event = new PropertyChangeEvent(this, changeId,
        oldTheme, newTheme);
    firePropertyChange(event);
  }
View Full Code Here

   
    private IPropertyChangeListener getPartPropertyListenerProxy() {
    if (lazyPartPropertyChangeListener == null) {
      lazyPartPropertyChangeListener = new IPropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent event) {
          PropertyChangeEvent e = new PropertyChangeEvent(this,
              event.getProperty(), event.getOldValue(), event.getNewValue());
          firePartPropertyChange(e);
        }
      };
    }
View Full Code Here

     */
    protected void fireMappingChanged(String name, Object oldValue,
            Object newValue) {
        final Object[] myListeners = getListeners();
        if (myListeners.length > 0) {
            PropertyChangeEvent event = new PropertyChangeEvent(this, name,
                    oldValue, newValue);
            for (int i = 0; i < myListeners.length; ++i) {
                try {
                    ((IPropertyChangeListener) myListeners[i])
                            .propertyChange(event);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.util.PropertyChangeEvent

Copyright © 2018 www.massapicom. 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.