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();
//감지 하려는 대상 디렉토리
}
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));
}
}
}
Aggregations