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