11package root .javafx .Controller ;
22
3+ import java .io .IOException ;
34import java .net .URL ;
45import java .util .ArrayList ;
56import java .util .Arrays ;
2223import javafx .scene .control .Label ;
2324import javafx .scene .control .ScrollPane ;
2425import javafx .scene .control .SplitPane ;
25- import javafx .scene .control .Alert .AlertType ;
2626import javafx .scene .input .ScrollEvent ;
2727import javafx .scene .layout .AnchorPane ;
2828import javafx .scene .layout .HBox ;
5151import root .core .usecase .implement .ServerMonitoringUsecaseImpl ;
5252import root .javafx .CustomView .CustomTreeTableView ;
5353import root .javafx .CustomView .CustomTreeView ;
54- import root .javafx .utils .AlertUtils ;
54+ import root .javafx .DI .DependencyInjection ;
55+ import root .javafx .utils .SceneUtils ;
5556import root .repository .implement .DBCheckRepositoryImpl ;
5657import root .repository .implement .LinuxServerMonitoringRepository ;
5758import root .repository .implement .PropertyRepositoryImpl ;
@@ -112,6 +113,9 @@ public class RunMenuController implements Initializable {
112113
113114 @ FXML
114115 HBox step3ToStep4Arrow ;
116+
117+ @ FXML
118+ AnchorPane noPropertyFileAP ;
115119
116120 private MonitoringTableViewPagingBox dbResults ;
117121 private MonitoringTableViewPagingBox serverResults ;
@@ -129,9 +133,10 @@ public void initialize(URL location, ResourceBundle resources) {
129133 /* 4. 실행결과 */
130134 // initRunStep4();
131135
136+ noPropertyFileAP .setVisible (false );
132137 } catch (PropertyNotFoundException e ) {
133138 log .error (e .getMessage ());
134- AlertUtils . showAlert ( AlertType . ERROR , "설정 파일 Load" , "설정 파일 읽기에 실패했습니다. 설정파일을 확인해주세요." );
139+ noPropertyFileAP . setVisible ( true );
135140 }
136141 }
137142
@@ -430,4 +435,14 @@ private void initRunStep4() {
430435 step3ToStep4Arrow .setMaxWidth (Control .USE_COMPUTED_SIZE );
431436 step3ToStep4Arrow .setPrefWidth (Control .USE_COMPUTED_SIZE );
432437 }
438+
439+ /**
440+ * 설정 메뉴로 이동
441+ *
442+ * @param e
443+ * @throws IOException
444+ */
445+ public void goSettingMenu (ActionEvent e ) throws IOException {
446+ SceneUtils .movePage (DependencyInjection .load ("/fxml/SettingMenu.fxml" ));
447+ }
433448}
0 commit comments