Ejemplo n.º 1
0
 public void setBreakPointsInRam(RAM ram) {
   if (ram == null) {
     return;
   }
   for (RAMLocation rLoc : ram.data()) {
     if (rLoc.getSourceLine() == null) {
       continue;
     } else {
       DebugCellData correspondingData =
           debugListView.getItems().get(rLoc.getSourceLine().getLine());
       rLoc.setBreak(correspondingData.getIsBreakPoint());
     }
   }
 }
Ejemplo n.º 2
0
 public DebugCellData newDebugCellData() {
   final DebugCellData newData = new DebugCellData();
   newData
       .isBreakPointProperty()
       .addListener(
           new ChangeListener<Boolean>() {
             @Override
             public void changed(
                 ObservableValue<? extends Boolean> observable,
                 Boolean oldValue,
                 Boolean newValue) {
               RAM r = mediator.getMachine().getCodeStore();
               clearAllBreakPointsInRam(r);
               setBreakPointsInRam(r);
             }
           });
   return newData;
 }