@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); }
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(); }
private void fireLearnConditionsChanged() { control.fireChangedEvent(); }
public void addLearnableListener(IChangeListener listener) { control.addChangeListener(listener); }
public void persistSelection(IMusicSelection selection) { persister.updateSelection(selection); selectionChangeControl.fireChangedEvent(); }
private void fireTrackSelectionChanged() { currentSelectionControl.fireChangedEvent(); }
public void deleteSelection(IMusicSelection selection) { persister.removeSelection(selection); selectionChangeControl.fireChangedEvent(); }
public void addSelectionsChangeListener(IChangeListener listener) { selectionChangeControl.addChangeListener(listener); }
public void addCurrentSelectionChangeListener(IChangeListener listener) { currentSelectionControl.addChangeListener(listener); }