//    public Stage getStage() {
  //        return newStage;
  //    }
  @FXML
  @SuppressWarnings("unused")
  private void handleOpen() {
    FileChooser fileChooser = new FileChooser();

    if (mainApp.getLastFilePath() != null && mainApp.getLastFilePath().exists()) {
      fileChooser.setInitialDirectory(mainApp.getLastFilePath());
    } else {
      fileChooser.setInitialDirectory(new File(System.getProperty("user.home")));
    }

    // Set extension filter
    ExtensionFilter extFilter = new ExtensionFilter("mzQuantML file (*.mzq)", "*.mzq");
    fileChooser.getExtensionFilters().add(extFilter);

    // Set the title for file dialog
    fileChooser.setTitle("Select an mzQuantML file");

    // Show open file dialog
    file = fileChooser.showOpenDialog(mainApp.getPrimaryStage());

    if (file != null) {

      mainApp.loadMzqFile(file);
      mainApp.setLastFilePath(file);
    }
  }
 @FXML
 @SuppressWarnings("unused")
 private void handlePCA() {
   mainApp.showPCAPlot();
 }
 @FXML
 @SuppressWarnings("unused")
 private void handleHeatMapPdf() {
   mainApp.showHeatMapPdfWindow();
 }
 @FXML
 @SuppressWarnings("unused")
 private void handleHeatMapinR() {
   mainApp.showHeatMapinR();
 }
 @FXML
 @SuppressWarnings("unused")
 private void handleClose() {
   mainApp.closeMzqInfo();
 }
 @FXML
 @SuppressWarnings("unused")
 private void handleInstallRequiredPackages() {
   mainApp.installRequiredPackages();
 }
 @FXML
 @SuppressWarnings("unused")
 private void showAbout() {
   mainApp.showAbout();
 }
 @FXML
 @SuppressWarnings("unused")
 private void handleCurve() throws JAXBException {
   mainApp.showCurve();
 }