Examples of ExitCode


Examples of net.sf.mzmine.util.ExitCode

      parameters.getParameter(TwoDParameters.retentionTimeRange)
          .setValue(rtRange);
    if (mzRange != null)
      parameters.getParameter(TwoDParameters.mzRange).setValue(mzRange);

    ExitCode exitCode = parameters.showSetupDialog();

    if (exitCode != ExitCode.OK)
      return;

    int msLevel = parameters.getParameter(TwoDParameters.msLevel)
View Full Code Here

Examples of net.sf.mzmine.util.ExitCode

        numOfThreads, proxySettings, windowState});
  }

  public ExitCode showSetupDialog() {

    ExitCode retVal = super.showSetupDialog();

    if (retVal == ExitCode.OK) {

      // Update proxy settings
      updateSystemProxySettings();
View Full Code Here

Examples of net.sf.mzmine.util.ExitCode

            .getModule();
        final ParameterSet methodParams = MZmineCore.getConfiguration()
            .getModuleParameters(selectedMethod.getClass());

        if (methodParams.getParameters().length > 0) {
          ExitCode exitCode = methodParams.showSetupDialog();
          if (exitCode != ExitCode.OK)
            return;
        }

        // Make a new step
View Full Code Here

Examples of net.sf.mzmine.util.ExitCode

  }

  @Override
  public ExitCode showSetupDialog() {

    ExitCode exitCode = super.showSetupDialog();

    // If the parameters are not complete, let's just stop here
    if (exitCode != ExitCode.OK)
      return exitCode;
View Full Code Here

Examples of net.sf.mzmine.util.ExitCode

      errorMessage = "Invalid parameter settings for module " + method
          + ": " + Arrays.toString(messages.toArray());
    }

    ArrayList<Task> currentStepTasks = new ArrayList<Task>();
    ExitCode exitCode = method.runModule(batchStepParameters,
        currentStepTasks);

    if (exitCode != ExitCode.OK) {
      setStatus(TaskStatus.ERROR);
      errorMessage = "Could not start batch step " + method.getName();
View Full Code Here

Examples of net.sf.mzmine.util.ExitCode

        MZmineCore.getDesktop().displayMessage(message.toString());
        return;
      }

      logger.finest("Setting parameters for module " + module.getName());
      ExitCode exitCode = moduleParameters.showSetupDialog();
      if (exitCode == ExitCode.OK) {
        ParameterSet parametersCopy = moduleParameters.cloneParameter();
        logger.finest("Starting module " + module.getName()
            + " with parameters " + parametersCopy);
        ArrayList<Task> tasks = new ArrayList<Task>();
View Full Code Here

Examples of net.sf.mzmine.util.ExitCode

      MZmineCore.getCurrentProject().removeFile(dataFile);

    File batchFile = new File(
        "src/test/resources/deconvolutedanalysis/famealignment.xml");
    Assert.assertTrue(batchFile.exists());
    ExitCode exitCode = BatchModeModule.runBatch(batchFile);
    assert (exitCode == ExitCode.OK);

    // Check that new files have been created
    assert (MZmineCore.getCurrentProject().getDataFiles().length > 0);
View Full Code Here

Examples of net.sf.mzmine.util.ExitCode

    MZmineCore.initializeHeadless();

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

    assertTrue(code == ExitCode.OK);

  }
View Full Code Here

Examples of net.sf.mzmine.util.ExitCode

    MZmineCore.initializeHeadless();

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

    assertTrue(code == ExitCode.OK);

  }
View Full Code Here

Examples of net.sf.mzmine.util.ExitCode

    MZmineCore.initializeHeadless();

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

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

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.