Example #1
0
 @Override
 public void removeItem(IEquipmentItem item) {
   equipmentItems.remove(item);
   announce().itemRemoved(item);
   item.removeChangeListener(itemChangePropagator);
   fireModelChanged();
 }
 @Override
 public void removeItem(final IEquipmentItem item) {
   equipmentItems.remove(item);
   equipmentItemControl.forAllDo(
       new IClosure<ICollectionListener<IEquipmentItem>>() {
         @Override
         public void execute(final ICollectionListener<IEquipmentItem> input) {
           input.itemRemoved(item);
         }
       });
   item.removeChangeListener(itemChangePropagator);
   modelChangeControl.fireChangedEvent();
 }