Skip to content

Included FXMLs are not edited by Scene Builder instead by external application #840

Description

@Oliver-Loeffler

Expected Behavior

  • Included FXML files should be edited by Scene Builder itself.

Current Behavior

  • When editing an included FXML file, Notepad or any other editor is used but not Scene Builder.

Steps to Reproduce

inner.fxml

<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.layout.Pane?>
<Pane fx:id="innerPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/21.0.3-internal" xmlns:fx="http://javafx.com/fxml/1" />

outer.fxml

<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.layout.Pane?>
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/21.0.3-internal" xmlns:fx="http://javafx.com/fxml/1">
   <children>
      <fx:include source="inner.fxml" />
   </children>
</Pane>
  • open outer.fxml
  • go to Document Hierarchy pane
  • Select FXML Pane.
  • Right click (open context menu).
  • Select Edit Included File --> here Notepad (or any other editor) opens and shows the FXML source.

Your Environment

Windows 10 22H2
SceneBuilder 24

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions