mirror of
https://github.com/aNNiMON/HotaruFX.git
synced 2024-09-19 14:14:21 +03:00
Auto expand log pane on parse errors
This commit is contained in:
parent
306f3efc32
commit
15c1d40f70
@ -32,6 +32,8 @@ public class EditorController implements Initializable {
|
||||
|
||||
@FXML
|
||||
public TextArea log;
|
||||
@FXML
|
||||
public TitledPane logPane;
|
||||
|
||||
@FXML
|
||||
public void handleMenuExit(ActionEvent event) {
|
||||
@ -62,6 +64,7 @@ public class EditorController implements Initializable {
|
||||
sb.append(parseError);
|
||||
}
|
||||
log.setText(sb.toString());
|
||||
logPane.setExpanded(true);
|
||||
return;
|
||||
}
|
||||
program.accept(new InterpreterVisitor(), context);
|
||||
|
@ -34,7 +34,7 @@
|
||||
</VBox>
|
||||
</top>
|
||||
<bottom>
|
||||
<TitledPane animated="false" expanded="false" text="Log" BorderPane.alignment="CENTER">
|
||||
<TitledPane fx:id="logPane" animated="false" expanded="false" text="Log" BorderPane.alignment="CENTER">
|
||||
<TextArea editable="false" fx:id="log" />
|
||||
</TitledPane>
|
||||
</bottom>
|
||||
|
Loading…
Reference in New Issue
Block a user