use of de.unijena.cheminf.mortar.gui.views.PipelineSettingsView in project MORTAR by FelixBaensch.
the class PipelineSettingsViewController method showPipelineSettingsView.
//
// <editor-fold desc="private methods" defaultstate="collapsed">
/**
* Initialises stage and view and opens view in the initialised stage
*/
private void showPipelineSettingsView() {
if (this.pipelineSettingsView == null)
this.pipelineSettingsView = new PipelineSettingsView();
this.pipelineSettingsViewStage = new Stage();
Scene tmpScene = new Scene(this.pipelineSettingsView, GuiDefinitions.GUI_MAIN_VIEW_WIDTH_VALUE, GuiDefinitions.GUI_MAIN_VIEW_HEIGHT_VALUE);
this.pipelineSettingsViewStage.setScene(tmpScene);
this.pipelineSettingsViewStage.initModality(Modality.WINDOW_MODAL);
this.pipelineSettingsViewStage.initOwner(this.mainStage);
this.pipelineSettingsViewStage.setTitle(Message.get("PipelineSettingsView.title"));
this.pipelineSettingsViewStage.setMinHeight(GuiDefinitions.GUI_MAIN_VIEW_HEIGHT_VALUE);
this.pipelineSettingsViewStage.setMinWidth(GuiDefinitions.GUI_MAIN_VIEW_WIDTH_VALUE);
Platform.runLater(() -> {
this.pipelineSettingsView.addGrid(this.pipelineSettingsViewStage);
this.addListenerAndBindings();
for (IMoleculeFragmenter tmpFragmenter : this.fragmenterList) {
this.addNewChoiceRow(tmpFragmenter.getFragmentationAlgorithmName());
}
this.setPipelineName(this.fragmentationService.getPipeliningFragmentationName());
this.pipelineSettingsView.getFragmentButton().setDisable(!this.isMoleculeDataLoaded || this.isFragmentationRunning);
});
this.pipelineSettingsViewStage.showAndWait();
}
Aggregations