Search in sources :

Example 1 with LogViewComposite

use of com.kyj.fx.voeditor.visual.component.text.LogViewComposite in project Gargoyle by callakrsos.

the class LogViewerExam method start.

/* (non-Javadoc)
	 * @see javafx.application.Application#start(javafx.stage.Stage)
	 */
@Override
public void start(Stage primaryStage) throws Exception {
    File watchTargetFile = new File("C:\\Users\\KYJ\\AppData\\Local\\O-PREA-Batch\\app\\log\\batch-scheduler.log");
    root = new LogViewComposite(watchTargetFile);
    primaryStage.setScene(new Scene(root.getParent()));
    primaryStage.show();
    root.start();
//감지 하려는 대상 디렉토리
}
Also used : LogViewComposite(com.kyj.fx.voeditor.visual.component.text.LogViewComposite) Scene(javafx.scene.Scene) File(java.io.File)

Example 2 with LogViewComposite

use of com.kyj.fx.voeditor.visual.component.text.LogViewComposite in project Gargoyle by callakrsos.

the class SystemLayoutViewController method miLogViewOnAction.

/**
	 * LogView
	 * @작성자 : KYJ
	 * @작성일 : 2017. 1. 16.
	 */
@FXML
public void miLogViewOnAction() {
    File showFileDialog = DialogUtil.showFileDialog(SharedMemory.getPrimaryStage());
    if (showFileDialog != null && showFileDialog.exists()) {
        try {
            LogViewComposite composite = new LogViewComposite(showFileDialog);
            loadNewSystemTab(showFileDialog.getName(), (CloseableParent<BorderPane>) composite);
            composite.start();
        } catch (Exception e) {
            LOGGER.error(ValueUtil.toString(e));
        }
    }
}
Also used : LogViewComposite(com.kyj.fx.voeditor.visual.component.text.LogViewComposite) BorderPane(javafx.scene.layout.BorderPane) File(java.io.File) IOException(java.io.IOException) GargoyleException(com.kyj.fx.voeditor.visual.exceptions.GargoyleException) FXML(javafx.fxml.FXML)

Aggregations

LogViewComposite (com.kyj.fx.voeditor.visual.component.text.LogViewComposite)2 File (java.io.File)2 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