/**
  * Extend to stop listening to the nested model if necessary.
  *
  * @see org.eclipse.persistence.tools.workbench.utility.Model#removePropertyChangeListener(String,
  *     java.beans.PropertyChangeListener)
  */
 public synchronized void removePropertyChangeListener(
     String propertyName, PropertyChangeListener listener) {
   super.removePropertyChangeListener(propertyName, listener);
   if (this.propertyIsRelevant(propertyName) && this.hasNoRelevantListeners()) {
     this.valueHolder.removePropertyChangeListener(ValueModel.VALUE, this.valueChangeListener);
   }
 }
Ejemplo n.º 2
0
 /**
  * Extend to stop listening to the models if appropriate.
  *
  * @see org.eclipse.persistence.tools.workbench.utility.Model#removePropertyChangeListener(String,
  *     PropertyChangeListener)
  */
 public synchronized void removePropertyChangeListener(
     String propertyName, PropertyChangeListener listener) {
   super.removePropertyChangeListener(propertyName, listener);
   if (propertyName == VALUE && this.hasNoListeners()) {
     this.disengageModels();
   }
 }
 /**
  * Extend to stop listening to the nested model if necessary.
  *
  * @see
  *     org.eclipse.persistence.tools.workbench.utility.Model#removePropertyChangeListener(java.beans.PropertyChangeListener)
  */
 public synchronized void removePropertyChangeListener(PropertyChangeListener listener) {
   super.removePropertyChangeListener(listener);
   if (this.hasNoRelevantListeners()) {
     this.valueHolder.removePropertyChangeListener(ValueModel.VALUE, this.valueChangeListener);
   }
 }
Ejemplo n.º 4
0
 /**
  * Extend to stop listening to the models if appropriate.
  *
  * @see
  *     org.eclipse.persistence.tools.workbench.utility.Model#removePropertyChangeListener(PropertyChangeListener)
  */
 public synchronized void removePropertyChangeListener(PropertyChangeListener listener) {
   super.removePropertyChangeListener(listener);
   if (this.hasNoListeners()) {
     this.disengageModels();
   }
 }