package de.prob2.ui.helpsystem;

import com.google.inject.Inject;
import com.google.inject.Singleton;
import de.prob2.ui.internal.StageManager;
import javafx.fxml.FXML;
import javafx.scene.control.SplitPane;
import javafx.scene.control.TreeItem;
import javafx.scene.control.TreeView;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;

@Singleton
public class HelpSystem extends SplitPane {
    @FXML private TreeView<String> treeView;
    @FXML private WebView webView;
    WebEngine webEngine;

    @Inject
    public HelpSystem(final StageManager stageManager) {
        stageManager.loadFXML(this, "helpsystem.fxml");
        TreeItem<String> root = new TreeItem<>("Root Node");
        root.setExpanded(true);
        root.getChildren().addAll(
                new TreeItem<>("Item 1"),
                new TreeItem<>("Item 2"),
                new TreeItem<>("Item 3")
        );
        treeView.setRoot(root);
        //treeView.setMaxWidth(0);
        webEngine = webView.getEngine();
        webEngine.load("https://www3.hhu.de/stups/prob/index.php/Main_Page");
    }
}

@@ -95,16 +95,17 @@
 gleton;%0A
+%0A
 import d
@@ -138,16 +138,17 @@
 anager;%0A
+%0A
 import j
@@ -168,47 +168,8 @@
 ML;%0A
-import javafx.scene.control.SplitPane;%0A
 impo
@@ -240,16 +240,54 @@
 eeView;%0A
+import javafx.scene.layout.StackPane;%0A
 import j
@@ -395,12 +395,12 @@
 ds S
-plit
+tack
 Pane

Fix Mac menu bar in help system window