[no commit message]
This commit is contained in:
parent
61ca41e1d2
commit
10f98472a8
@ -88,7 +88,7 @@ public class MspViewController implements Initializable, MspListener {
|
|||||||
|
|
||||||
private final String mspName = "msp";
|
private final String mspName = "msp";
|
||||||
|
|
||||||
private TextArea logArea;
|
private ConsoleWindow logArea;
|
||||||
|
|
||||||
private final ConfigChangeListener viewConfigObserver = new ConfigChangeListener() {
|
private final ConfigChangeListener viewConfigObserver = new ConfigChangeListener() {
|
||||||
|
|
||||||
@ -131,8 +131,7 @@ public class MspViewController implements Initializable, MspListener {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void initialize(URL url, ResourceBundle rb) {
|
public void initialize(URL url, ResourceBundle rb) {
|
||||||
ConsoleWindow cw = new ConsoleWindow(consoleButton);
|
logArea = new ConsoleWindow(consoleButton);
|
||||||
this.logArea = cw.getTextArea();
|
|
||||||
fillamentSelector.setItems(FXCollections.observableArrayList(1, 2));
|
fillamentSelector.setItems(FXCollections.observableArrayList(1, 2));
|
||||||
fillamentSelector.setConverter(new StringConverter<Integer>() {
|
fillamentSelector.setConverter(new StringConverter<Integer>() {
|
||||||
@Override
|
@Override
|
||||||
@ -296,21 +295,21 @@ public class MspViewController implements Initializable, MspListener {
|
|||||||
@Override
|
@Override
|
||||||
public void acceptMessage(String message) {
|
public void acceptMessage(String message) {
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
logArea.appendText("RECIEVE: " + message + "\r\n");
|
logArea.appendLine("RECIEVE: " + message);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void acceptRequest(String message) {
|
public void acceptRequest(String message) {
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
logArea.appendText("SEND: " + message + "\r\n");
|
logArea.appendLine("SEND: " + message);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void error(String errorMessage, Throwable error) {
|
public void error(String errorMessage, Throwable error) {
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
logArea.appendText("ERROR: " + errorMessage + "\r\n");
|
logArea.appendLine("ERROR: " + errorMessage);
|
||||||
showError(errorMessage);
|
showError(errorMessage);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user