コード例 #1
0
 public void add(@NotNull SModelDescriptor sm) {
   checkDisposed();
   // assert !myModelDescriptors.contains(sm) : "EventsCollector was already configured to listen
   // for changes in this model descriptor: " + sm.getSModelReference().toString();
   myModelDescriptors.add(sm);
   sm.addModelListener(myListener);
 }
コード例 #2
0
  public void remove(@NotNull SModelDescriptor sm) {
    checkDisposed();

    myModelDescriptors.remove(sm);
    sm.removeModelListener(myListener);
  }