From 0afbaac94456bf4f5b5212620850d978cd1b6a84 Mon Sep 17 00:00:00 2001 From: Eduardo Alonso Date: Mon, 31 Dec 2018 13:20:40 +0100 Subject: [PATCH] Add option to clear text from the packetlogger Signed-off-by: Eduardo Alonso --- .../ui/logger/loggerdisplays/uilogger/UiLoggerController.java | 4 ++++ .../main/resources/gearth/ui/logger/uilogger/UiLogger.fxml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java b/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java index 098a168..a839ce7 100644 --- a/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java +++ b/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java @@ -227,4 +227,8 @@ public class UiLoggerController implements Initializable { stage.setAlwaysOnTop(!alwaysOnTop); alwaysOnTop = !alwaysOnTop; } + + public void clearText(ActionEvent actionEvent) { + area.clear(); + } } diff --git a/G-Earth/src/main/resources/gearth/ui/logger/uilogger/UiLogger.fxml b/G-Earth/src/main/resources/gearth/ui/logger/uilogger/UiLogger.fxml index 526b4af..0e51efc 100644 --- a/G-Earth/src/main/resources/gearth/ui/logger/uilogger/UiLogger.fxml +++ b/G-Earth/src/main/resources/gearth/ui/logger/uilogger/UiLogger.fxml @@ -34,6 +34,10 @@ + + + +