Interrupts/Call
This commit is contained in:
@ -96,11 +96,11 @@ public class Controller_Frontend {
|
||||
return isSleeping;
|
||||
}
|
||||
|
||||
public static void stopRunFromBackend(String message, boolean resetPC){
|
||||
public static void stopRunFromBackend(String message){
|
||||
isAutoRunActive = false;
|
||||
if (isSleeping)
|
||||
isSleeping = false;
|
||||
else if (resetPC)
|
||||
wakeUpFromSleep();
|
||||
else
|
||||
DataRegister.resetPC();
|
||||
// Stage stoppedStage = new Stage();
|
||||
// stoppedStage.setTitle("Programm unterbrochen!");
|
||||
@ -122,15 +122,16 @@ public class Controller_Frontend {
|
||||
isSleeping = true;
|
||||
}
|
||||
|
||||
public static void wakeUpFromSleep() {
|
||||
isSleeping = false;
|
||||
}
|
||||
|
||||
@FXML
|
||||
private void stopAutoRun(ActionEvent event) {
|
||||
isAutoRunActive = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@FXML
|
||||
private void autoRunGUI(ActionEvent event) {
|
||||
if (!isAutoRunActive) {
|
||||
@ -155,7 +156,6 @@ public class Controller_Frontend {
|
||||
});
|
||||
autoRunThread.setDaemon(true);
|
||||
autoRunThread.start();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -259,7 +259,6 @@ public class Controller_Frontend {
|
||||
});
|
||||
}
|
||||
|
||||
//////////////testeteet
|
||||
private Set<Integer> breakpoints = new HashSet<>();
|
||||
|
||||
|
||||
@ -293,9 +292,6 @@ public class Controller_Frontend {
|
||||
displayLSTFileContent(selectedFile);
|
||||
markSelectedRow(0, "-fx-background-color: red; -fx-text-fill: white;");
|
||||
initializeBreakpoints();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -347,13 +343,6 @@ public class Controller_Frontend {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private File chooseLSTFile() {
|
||||
FileChooser fileChooser = new FileChooser();
|
||||
fileChooser.setTitle("Open LST File");
|
||||
|
||||
Reference in New Issue
Block a user