Commit 49ee30e8 authored by Alexander Weigl's avatar Alexander Weigl

fixing

parent 11f21a84
Pipeline #12194 failed with stage
in 1 minute and 38 seconds
......@@ -18,12 +18,12 @@ import javafx.collections.ObservableMap;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.CharStreams;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.NotImplementedException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.dockfx.DockNode;
import org.dockfx.DockPane;
import org.dockfx.DockPos;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import java.io.File;
import java.io.IOException;
......@@ -99,7 +99,7 @@ public class ScriptController {
private DockNode createDockNode(ScriptArea area) {
DockNode dockNode = new DockNode(area, area.getFilePath().getName(), new MaterialDesignIconView(MaterialDesignIcon.FILE_DOCUMENT));
dockNode.closableProperty().addListener(o -> {
dockNode.closedProperty().addListener(o -> {
openScripts.remove(area);
});
area.filePathProperty().addListener((observable, oldValue, newValue) -> dockNode.setTitle(newValue.getName()));
......
......@@ -52,6 +52,6 @@ public class CaseStatement extends Statement<ScriptLanguageParser.CasesListConte
* {@inheritDoc}
*/
@Override public CaseStatement copy() {
return new CaseStatement(body.copy(), isClosedStmt);
return new CaseStatement(isClosedStmt, body.copy());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment