@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);
 }