Search in sources :

Example 1 with EditorController

use of com.oracle.javafx.scenebuilder.kit.editor.EditorController in project intellij-community by JetBrains.

the class SceneBuilderImpl method create.

private void create() {
    if (myProject.isDisposed()) {
        return;
    }
    myEditorController = new EditorController();
    updateCustomLibrary();
    HierarchyTreeViewController componentTree = new HierarchyTreeViewController(myEditorController);
    ContentPanelController canvas = new ContentPanelController(myEditorController);
    InspectorPanelController propertyTable = new InspectorPanelController(myEditorController);
    LibraryPanelController palette = new LibraryPanelController(myEditorController);
    SplitPane leftPane = new SplitPane();
    leftPane.setOrientation(Orientation.VERTICAL);
    leftPane.getItems().addAll(palette.getPanelRoot(), componentTree.getPanelRoot());
    leftPane.setDividerPositions(0.5, 0.5);
    SplitPane.setResizableWithParent(leftPane, Boolean.FALSE);
    SplitPane.setResizableWithParent(propertyTable.getPanelRoot(), Boolean.FALSE);
    SplitPane mainPane = new SplitPane();
    mainPane.getItems().addAll(leftPane, canvas.getPanelRoot(), propertyTable.getPanelRoot());
    mainPane.setDividerPositions(0.11036789297658862, 0.8963210702341137);
    myPanel.setScene(new Scene(mainPane, myPanel.getWidth(), myPanel.getHeight(), true, SceneAntialiasing.BALANCED));
    loadFile();
    startChangeListener();
    if (myProject.isDisposed()) {
        return;
    }
    UsageTrigger.trigger("scene-builder.open");
}
Also used : EditorController(com.oracle.javafx.scenebuilder.kit.editor.EditorController) InspectorPanelController(com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController) ContentPanelController(com.oracle.javafx.scenebuilder.kit.editor.panel.content.ContentPanelController) SplitPane(javafx.scene.control.SplitPane) Scene(javafx.scene.Scene) HierarchyTreeViewController(com.oracle.javafx.scenebuilder.kit.editor.panel.hierarchy.treeview.HierarchyTreeViewController) LibraryPanelController(com.oracle.javafx.scenebuilder.kit.editor.panel.library.LibraryPanelController)

Aggregations

EditorController (com.oracle.javafx.scenebuilder.kit.editor.EditorController)1 ContentPanelController (com.oracle.javafx.scenebuilder.kit.editor.panel.content.ContentPanelController)1 HierarchyTreeViewController (com.oracle.javafx.scenebuilder.kit.editor.panel.hierarchy.treeview.HierarchyTreeViewController)1 InspectorPanelController (com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController)1 LibraryPanelController (com.oracle.javafx.scenebuilder.kit.editor.panel.library.LibraryPanelController)1 Scene (javafx.scene.Scene)1 SplitPane (javafx.scene.control.SplitPane)1