View Javadoc
1   package io.github.magwas.inez.ui;
2   
3   import java.io.IOException;
4   import javafx.scene.control.Tab;
5   import javafx.scene.control.TabPane;
6   
7   import org.springframework.beans.factory.annotation.Autowired;
8   import org.springframework.stereotype.Service;
9   
10  @Service
11  public class PopulateUIService {
12  
13  	@Autowired
14  	UIState uiState;
15  
16  	@Autowired
17  	CreateTreeViewTabService createTreeViewTab;
18  
19  	void apply() throws IOException {
20  		Tab treeviewTab = createTreeViewTab.apply();
21  		((TabPane) uiState.mainArea.getItems().get(0)).getTabs().add(treeviewTab);
22  	}
23  }