예제 #1
0
  //    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);
    }
  }
예제 #2
0
 @FXML
 @SuppressWarnings("unused")
 private void handlePCA() {
   mainApp.showPCAPlot();
 }
예제 #3
0
 @FXML
 @SuppressWarnings("unused")
 private void handleHeatMapPdf() {
   mainApp.showHeatMapPdfWindow();
 }
예제 #4
0
 @FXML
 @SuppressWarnings("unused")
 private void handleHeatMapinR() {
   mainApp.showHeatMapinR();
 }
예제 #5
0
 @FXML
 @SuppressWarnings("unused")
 private void handleClose() {
   mainApp.closeMzqInfo();
 }
예제 #6
0
 @FXML
 @SuppressWarnings("unused")
 private void handleInstallRequiredPackages() {
   mainApp.installRequiredPackages();
 }
예제 #7
0
 @FXML
 @SuppressWarnings("unused")
 private void showAbout() {
   mainApp.showAbout();
 }
예제 #8
0
 @FXML
 @SuppressWarnings("unused")
 private void handleCurve() throws JAXBException {
   mainApp.showCurve();
 }