コード例 #1
0
 /**
  * Extend to start listening to the models if necessary.
  *
  * @see org.eclipse.persistence.tools.workbench.utility.Model#addListChangeListener(String,
  *     ListChangeListener)
  */
 public synchronized void addListChangeListener(String listName, ListChangeListener listener) {
   if (listName == VALUE && this.hasNoListeners()) {
     this.engageModels();
   }
   super.addListChangeListener(listName, listener);
 }
コード例 #2
0
 /**
  * Extend to start listening to the models if necessary.
  *
  * @see
  *     org.eclipse.persistence.tools.workbench.utility.Model#addListChangeListener(ListChangeListener)
  */
 public synchronized void addListChangeListener(ListChangeListener listener) {
   if (this.hasNoListeners()) {
     this.engageModels();
   }
   super.addListChangeListener(listener);
 }