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