@Override
 public void disableStatOption(
     IEquipmentItem item, IEquipmentStats stats, IEquipmentStatsOption option) {
   if (item == null || stats == null) return;
   getOptionsList(item, stats).remove(option);
   modelChangeControl.fireChangedEvent();
 }
 private void initItem(final IEquipmentItem item) {
   equipmentItemControl.forAllDo(
       new IClosure<ICollectionListener<IEquipmentItem>>() {
         @Override
         public void execute(ICollectionListener<IEquipmentItem> input) {
           input.itemAdded(item);
         }
       });
   modelChangeControl.fireChangedEvent();
   item.addChangeListener(itemChangePropagator);
 }
Пример #3
0
 public void addNewSelection(String unnamedSelectionBase) {
   int count = 1;
   IMusicSelection selection =
       getSelectionByName(unnamedSelectionBase + " " + count); // $NON-NLS-1$
   while (selection != null) {
     count++;
     selection = getSelectionByName(unnamedSelectionBase + " " + count); // $NON-NLS-1$
   }
   persister.addSelection(unnamedSelectionBase + " " + count); // $NON-NLS-1$
   selectionChangeControl.fireChangedEvent();
 }
 @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();
 }
 @Override
 public void changeOccurred() {
   modelChangeControl.fireChangedEvent();
 }
 @Override
 public void addChangeListener(final IChangeListener listener) {
   modelChangeControl.addChangeListener(listener);
 }
 @Override
 public void updateItem(IEquipmentItem item) {
   modelChangeControl.fireChangedEvent();
 }
Пример #8
0
 private void fireLearnConditionsChanged() {
   control.fireChangedEvent();
 }
Пример #9
0
 public void addLearnableListener(IChangeListener listener) {
   control.addChangeListener(listener);
 }
Пример #10
0
 public void persistSelection(IMusicSelection selection) {
   persister.updateSelection(selection);
   selectionChangeControl.fireChangedEvent();
 }
Пример #11
0
 private void fireTrackSelectionChanged() {
   currentSelectionControl.fireChangedEvent();
 }
Пример #12
0
 public void deleteSelection(IMusicSelection selection) {
   persister.removeSelection(selection);
   selectionChangeControl.fireChangedEvent();
 }
Пример #13
0
 public void addSelectionsChangeListener(IChangeListener listener) {
   selectionChangeControl.addChangeListener(listener);
 }
Пример #14
0
 public void addCurrentSelectionChangeListener(IChangeListener listener) {
   currentSelectionControl.addChangeListener(listener);
 }