private FxmlLoadable addModulesFloatySearchControl() {
    FxmlLoadable loader = new FxmlLoadable("/floatyfield/floaty-field.fxml");

    loader.load();

    FloatyFieldView ffView;

    ffView = (FloatyFieldView) loader.controller;
    ffView.promptTextProperty().set("Search functions i.e. gen_s:call or #t for all traces");

    loader.fxmlNode.setStyle("-fx-padding: 5 5 0 5;");

    HBox.setHgrow(loader.fxmlNode, Priority.ALWAYS);
    modulesBox.getChildren().add(0, loader.fxmlNode);

    ffView.textProperty().addListener(this::onFunctionSearchChange);

    Platform.runLater(
        () -> {
          FilterFocusManager.addFilter(
              (Control) loader.fxmlNode.getChildrenUnmodifiable().get(1), 1);
        });

    return loader;
  }
Exemple #2
0
  @Override
  public void start(Stage primaryStage) {
    try {
      PrefBind.setup();
    } catch (IOException e) {
      e.printStackTrace();
    }

    FxmlLoadable topBarFxml;

    topBarFxml = new FxmlLoadable("/erlyberly/topbar.fxml");
    topBarFxml.load();

    FxmlLoadable dbgFxml;

    dbgFxml = new FxmlLoadable("/erlyberly/dbg.fxml");
    dbgFxml.load();

    splitPane = new SplitPane();

    entopPane = (Region) loadEntopPane();
    splitPane.getItems().add(entopPane);

    splitPane.getItems().add(dbgFxml.load());

    setupProcPaneHiding(topBarFxml, dbgFxml);

    VBox rootView;

    rootView = new VBox(topBarFxml.fxmlNode, splitPane);
    rootView.setMaxWidth(Double.MAX_VALUE);

    VBox.setVgrow(splitPane, Priority.ALWAYS);

    Scene scene;

    scene = new Scene(rootView);
    applyCssToWIndow(scene);

    primaryStage.setScene(scene);
    primaryStage.titleProperty().bind(nodeAPI.summaryProperty());
    primaryStage.sizeToScene();
    primaryStage.setResizable(true);
    primaryStage.show();

    displayConnectionPopup(primaryStage);

    FilterFocusManager.init(scene);
  }