@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);
 }
Exemplo n.º 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();
 }
Exemplo n.º 8
0
 private void fireLearnConditionsChanged() {
   control.fireChangedEvent();
 }
Exemplo n.º 9
0
 public void addLearnableListener(IChangeListener listener) {
   control.addChangeListener(listener);
 }
Exemplo n.º 10
0
 public void persistSelection(IMusicSelection selection) {
   persister.updateSelection(selection);
   selectionChangeControl.fireChangedEvent();
 }
Exemplo n.º 11
0
 private void fireTrackSelectionChanged() {
   currentSelectionControl.fireChangedEvent();
 }
Exemplo n.º 12
0
 public void deleteSelection(IMusicSelection selection) {
   persister.removeSelection(selection);
   selectionChangeControl.fireChangedEvent();
 }
Exemplo n.º 13
0
 public void addSelectionsChangeListener(IChangeListener listener) {
   selectionChangeControl.addChangeListener(listener);
 }
Exemplo n.º 14
0
 public void addCurrentSelectionChangeListener(IChangeListener listener) {
   currentSelectionControl.addChangeListener(listener);
 }