(UIContext uiContext)
| 148 | private AboutDialog javaFXAboutDialog; |
| 149 | |
| 150 | public PCGenFrame(UIContext uiContext) |
| 151 | { |
| 152 | this.uiContext = Objects.requireNonNull(uiContext); |
| 153 | Globals.setRootFrame(this); |
| 154 | this.currentSourceSelection = uiContext.getCurrentSourceSelectionRef(); |
| 155 | this.currentCharacterRef = new DefaultReferenceFacade<>(); |
| 156 | this.currentDataSetRef = new DefaultReferenceFacade<>(); |
| 157 | this.actionMap = new PCGenActionMap(this, uiContext); |
| 158 | this.characterTabs = new CharacterTabs(this); |
| 159 | this.statusBar = new PCGenStatusBar(this); |
| 160 | this.filenameListener = new FilenameListener(); |
| 161 | Observer messageObserver = new ShowMessageGuiObserver(this); |
| 162 | ShowMessageDelegate.getInstance().addObserver(messageObserver); |
| 163 | ChooserFactory.setDelegate(this); |
| 164 | this.pcGenMenuBar = new PCGenMenuBar(this, uiContext); |
| 165 | initComponents(); |
| 166 | pack(); |
| 167 | initSettings(); |
| 168 | Platform.runLater(() -> { |
| 169 | javaFXStage = new Stage(); |
| 170 | javaFXAboutDialog = new AboutDialog(javaFXStage); |
| 171 | } |
| 172 | ); |
| 173 | } |
| 174 | |
| 175 | private void initComponents() |
| 176 | { |
nothing calls this directly
no test coverage detected