Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }