gluonhq / scenebuilder

Scene Builder is a visual, drag 'n' drop, layout tool for designing JavaFX application user interfaces.
https://gluonhq.com/products/scene-builder/
Other
748 stars 220 forks source link

missing code section #147

Closed gluon-bot closed 7 years ago

gluon-bot commented 7 years ago

Originally reported by: Asaf Ben Natan (Bitbucket: Flexicore, GitHub: Unknown)


Hi, just updated to scenebuilder 8.4.0 and the code section is missing (see attached snapshot), this happens when i open an old project, when creating a new project the code section shows as it should(fxml with issue attached)


gluon-bot commented 7 years ago

Original comment by Joeri Sykora (Bitbucket: tiainen, GitHub: tiainen):


Duplicate of #142.

gluon-bot commented 7 years ago

Original comment by Joeri Sykora (Bitbucket: tiainen, GitHub: tiainen):


The underlying reason is the same cause as for issue #142, a java.util.regex.PatternSyntaxException is thrown while looking up the controller class. Pull request #52 is created that resolves this issue.

gluon-bot commented 7 years ago

Original comment by lucasgenial (Bitbucket: lucasgenial, GitHub: lucasgenial):


The tip of Marcin Zielinski works though, we would have to change all the fxml of our application

gluon-bot commented 7 years ago

Original comment by lucasgenial (Bitbucket: lucasgenial, GitHub: lucasgenial):


Hello, this error also occurred while updating Gluon SB. In Windows 10. Below is one of the FXML models in which this error occurs

#!java

<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.control.cell.PropertyValueFactory?>
<?import javafx.scene.layout.Pane?>

<Pane fx:id="root" prefHeight="292.0" prefWidth="550.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.relatorio.controllers.TelaCadastroUnidadeController">
    <children>
        <Label layoutX="17.0" layoutY="3.0" text="Selecione a Unidade" />
        <TableView fx:id="tableUnidadesDisponiveis" layoutX="17.0" layoutY="22.0" prefHeight="236.0" prefWidth="517.0">
            <columns>
                <TableColumn fx:id="colIdUnidade" prefWidth="41.0" resizable="false" text="ID">
                    <cellValueFactory>
                        <PropertyValueFactory property="id" />
                    </cellValueFactory>
                </TableColumn>
                <TableColumn fx:id="colNomeUnidade" prefWidth="202.0" resizable="false" text="INSTITUIÇÃO">
                    <cellValueFactory>
                        <PropertyValueFactory property="nome" />
                    </cellValueFactory>
                </TableColumn>
                <TableColumn fx:id="colNomeCmdUnidade" prefWidth="278.0" resizable="false" text="NOME DA UNIDADE">
                    <cellValueFactory>
                        <PropertyValueFactory property="comandoDeArea" />
                    </cellValueFactory>
                </TableColumn>
            </columns>
        </TableView>
        <Button fx:id="btAdicionarUnidade" layoutX="392.0" layoutY="261.0" mnemonicParsing="false" onMouseClicked="#clickedAdicionar" text="Adicionar" />
        <Button fx:id="btCancelarAdicao" layoutX="467.0" layoutY="261.0" mnemonicParsing="false" onMouseClicked="#clickedCancelar" prefHeight="25.0" prefWidth="66.0" text="Voltar" />
    </children>
</Pane>
gluon-bot commented 7 years ago

Original comment by Joeri Sykora (Bitbucket: tiainen, GitHub: tiainen):


Could you please provide more information with regard to this issue because I cannot seem to reproduce it. I tried with and without defining the controller class and tried on linux, mac and windows. The code section is always available to me.

Attaching an fxml file that gives the problem might help.

gluon-bot commented 7 years ago

Original comment by George Moralis (Bitbucket: gmoralis, GitHub: gmoralis):


i can confirm that bug as well

gluon-bot commented 7 years ago

Original comment by Marcin Zielinski (Bitbucket: zielarz25, GitHub: zielarz25):


I have the same problem, but also with project created using 8.4.0 version. The problem occurs when you fill Controler Class field. Clearing this field brings the Code section back. Imgur