/**
  * Extend to stop listening to the models if appropriate.
  *
  * @see org.eclipse.persistence.tools.workbench.utility.Model#removeTreeChangeListener(String,
  *     TreeChangeListener)
  */
 public synchronized void removeTreeChangeListener(String treeName, TreeChangeListener listener) {
   super.removeTreeChangeListener(treeName, listener);
   if (treeName == VALUE && this.hasNoListeners()) {
     this.disengageModels();
   }
 }
 /**
  * Extend to stop listening to the models if appropriate.
  *
  * @see
  *     org.eclipse.persistence.tools.workbench.utility.Model#removeTreeChangeListener(TreeChangeListener)
  */
 public synchronized void removeTreeChangeListener(TreeChangeListener listener) {
   super.removeTreeChangeListener(listener);
   if (this.hasNoListeners()) {
     this.disengageModels();
   }
 }