Пример #1
0
 /**
  * Extend to stop listening to the models if appropriate.
  *
  * @see org.eclipse.persistence.tools.workbench.utility.Model#removeListChangeListener(String,
  *     ListChangeListener)
  */
 public synchronized void removeListChangeListener(String listName, ListChangeListener listener) {
   super.removeListChangeListener(listName, listener);
   if (listName == VALUE && this.hasNoListeners()) {
     this.disengageModels();
   }
 }
Пример #2
0
 /**
  * Extend to stop listening to the models if appropriate.
  *
  * @see
  *     org.eclipse.persistence.tools.workbench.utility.Model#removeListChangeListener(ListChangeListener)
  */
 public synchronized void removeListChangeListener(ListChangeListener listener) {
   super.removeListChangeListener(listener);
   if (this.hasNoListeners()) {
     this.disengageModels();
   }
 }