Search in sources :

Example 1 with SVNViewer

use of com.kyj.fx.voeditor.visual.component.scm.SVNViewer in project Gargoyle by callakrsos.

the class SystemLayoutViewController method lblSVNOnAction.

@FXML
public void lblSVNOnAction(ActionEvent e) {
    try {
        Scene scene = new Scene(new BorderPane(new SVNViewer()), 1100, 900);
        scene.getStylesheets().add(SkinManager.getInstance().getSkin());
        FxUtil.createStageAndShow(scene, stage -> {
            stage.setTitle("SVN");
            stage.initOwner(SharedMemory.getPrimaryStage());
            stage.setAlwaysOnTop(false);
            stage.centerOnScreen();
        });
    // Stage stage = new Stage();
    // Scene scene = new Scene(new BorderPane(new SVNViewer()), 1100,
    // 900);
    //
    //
    // scene.getStylesheets().add(SkinManager.getInstance().getSkin());
    // stage.setScene(scene);
    // stage.initOwner(SharedMemory.getPrimaryStage());
    //
    // stage.setTitle("SVN");
    // stage.setAlwaysOnTop(false);
    // stage.centerOnScreen();
    // stage.show();
    } catch (Exception ex) {
        LOGGER.error(ValueUtil.toString(ex));
        DialogUtil.showExceptionDailog(ex);
    }
}
Also used : BorderPane(javafx.scene.layout.BorderPane) Scene(javafx.scene.Scene) SVNViewer(com.kyj.fx.voeditor.visual.component.scm.SVNViewer) IOException(java.io.IOException) GargoyleException(com.kyj.fx.voeditor.visual.exceptions.GargoyleException) FXML(javafx.fxml.FXML)

Aggregations

SVNViewer (com.kyj.fx.voeditor.visual.component.scm.SVNViewer)1 GargoyleException (com.kyj.fx.voeditor.visual.exceptions.GargoyleException)1 IOException (java.io.IOException)1 FXML (javafx.fxml.FXML)1 Scene (javafx.scene.Scene)1 BorderPane (javafx.scene.layout.BorderPane)1