Package net.sf.mzmine.util

Examples of net.sf.mzmine.util.ExitCode


    MZmineCore.initializeHeadless();

    File batchFile = new File(
        "src/test/resources/readDirectoryWithLibraryIdentification.xml");
    Assert.assertTrue(batchFile.exists());
    ExitCode code = BatchModeModule.runBatch(batchFile);

    System.out.println("result code: " + code);
    assertTrue(code == ExitCode.OK);

  }
View Full Code Here


    MZmineCore.initializeHeadless();

    File batchFile = new File("src/test/resources/exportData.xml");
    Assert.assertTrue(batchFile.exists());
    ExitCode code = BatchModeModule.runBatch(batchFile);

    System.out.println("result code: " + code);
    assertTrue(code == ExitCode.OK);

    Scanner scanner = new Scanner(new File("target/export-result.csv"));
View Full Code Here

    MZmineCore.initializeHeadless();

    File batchFile = new File("src/test/resources/exportPosData.xml");
    Assert.assertTrue(batchFile.exists());
    ExitCode code = BatchModeModule.runBatch(batchFile);

    System.out.println("result code: " + code);
    assertTrue(code == ExitCode.OK);

    Scanner scanner = new Scanner(new File("target/export-result-pos.csv"));
View Full Code Here

      File batchFile = new File(args[0]);
      if ((!batchFile.exists()) || (!batchFile.canRead())) {
        logger.severe("Cannot read batch file " + batchFile);
        System.exit(1);
      }
      ExitCode exitCode = BatchModeModule.runBatch(batchFile);
      if (exitCode == ExitCode.OK)
        System.exit(0);
      else
        System.exit(1);
    }
View Full Code Here

    if (charge > 0) {
      parameters.getParameter(FormulaPredictionParameters.neutralMass)
          .setCharge(charge);
    }

    ExitCode exitCode = parameters.showSetupDialog();
    if (exitCode != ExitCode.OK)
      return;

    SingleRowPredictionTask newTask = new SingleRowPredictionTask(
        parameters.cloneParameter(), row);
View Full Code Here

          .getModuleInstance(SpectraVisualizerModule.class);
      ParameterSet parameters = MZmineCore.getConfiguration()
          .getModuleParameters(SpectraVisualizerModule.class);
      parameters.getParameter(SpectraVisualizerParameters.dataFiles)
          .setValue(selectedFiles);
      ExitCode exitCode = parameters.showSetupDialog();
      if (exitCode == ExitCode.OK)
        module.runModule(parameters, new ArrayList<Task>());
    }

    if (command.equals("SHOW_2D")) {
View Full Code Here

    }

    parameters.getParameter(IntensityPlotParameters.xAxisValueSource)
        .setChoices(xAxisSources);

    ExitCode exitCode = parameters.showSetupDialog();

    if (exitCode == ExitCode.OK) {
      IntensityPlotFrame newFrame = new IntensityPlotFrame(
          parameters.cloneParameter());
      MZmineCore.getDesktop().addInternalFrame(newFrame);
View Full Code Here

    MiniXImportModule module = new MiniXImportModule();

    Collection<Task> taskCollection = new Vector<Task>();
    MiniXImportParameters parameterSet = new MiniXImportParameters();

    ExitCode code = module.runModule(parameterSet, taskCollection);
    assertTrue(code.equals(ExitCode.ERROR));
  }
View Full Code Here

        .setValue("150994");
    parameterSet.getParameter(MiniXImportParameters.MINIX_URL_PARAMETER)
        .setValue(
            "http://www.thisurlshallnotexist.fiehnlab.ucdavis.edu");

    ExitCode code = module.runModule(parameterSet, taskCollection);
    assertTrue(code.equals(ExitCode.ERROR));
  }
View Full Code Here

  }

  @Override
  public void handleQuitRequestWith(QuitEvent event, QuitResponse response) {
    ExitCode exitCode = MZmineCore.getDesktop().exitMZmine();
    if (exitCode == ExitCode.OK)
      response.performQuit();
    else
      response.cancelQuit();
  }
View Full Code Here

TOP

Related Classes of net.sf.mzmine.util.ExitCode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.