From 10f98472a83de520eb47e2bde6a23fdbf6130a3c Mon Sep 17 00:00:00 2001 From: darksnake Date: Wed, 20 Apr 2016 17:52:51 +0300 Subject: [PATCH] [no commit message] --- .../inr/numass/control/msp/fx/MspViewController.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/numass-control/msp/src/main/java/inr/numass/control/msp/fx/MspViewController.java b/numass-control/msp/src/main/java/inr/numass/control/msp/fx/MspViewController.java index 939c0940..773f6a66 100644 --- a/numass-control/msp/src/main/java/inr/numass/control/msp/fx/MspViewController.java +++ b/numass-control/msp/src/main/java/inr/numass/control/msp/fx/MspViewController.java @@ -88,7 +88,7 @@ public class MspViewController implements Initializable, MspListener { private final String mspName = "msp"; - private TextArea logArea; + private ConsoleWindow logArea; private final ConfigChangeListener viewConfigObserver = new ConfigChangeListener() { @@ -131,8 +131,7 @@ public class MspViewController implements Initializable, MspListener { */ @Override public void initialize(URL url, ResourceBundle rb) { - ConsoleWindow cw = new ConsoleWindow(consoleButton); - this.logArea = cw.getTextArea(); + logArea = new ConsoleWindow(consoleButton); fillamentSelector.setItems(FXCollections.observableArrayList(1, 2)); fillamentSelector.setConverter(new StringConverter() { @Override @@ -296,21 +295,21 @@ public class MspViewController implements Initializable, MspListener { @Override public void acceptMessage(String message) { Platform.runLater(() -> { - logArea.appendText("RECIEVE: " + message + "\r\n"); + logArea.appendLine("RECIEVE: " + message); }); } @Override public void acceptRequest(String message) { Platform.runLater(() -> { - logArea.appendText("SEND: " + message + "\r\n"); + logArea.appendLine("SEND: " + message); }); } @Override public void error(String errorMessage, Throwable error) { Platform.runLater(() -> { - logArea.appendText("ERROR: " + errorMessage + "\r\n"); + logArea.appendLine("ERROR: " + errorMessage); showError(errorMessage); });