Examples of showSetupDialog()


Examples of net.sf.mzmine.desktop.preferences.MZminePreferences.showSetupDialog()

    }

    if (src == projectPreferences) {
      MZminePreferences preferences = MZmineCore.getConfiguration()
          .getPreferences();
      preferences.showSetupDialog();
    }

    if (src == showAbout) {
      MainWindow mainWindow = (MainWindow) MZmineCore.getDesktop();
      mainWindow.showAboutDialog();
View Full Code Here

Examples of net.sf.mzmine.parameters.ParameterSet.showSetupDialog()

      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.parameters.ParameterSet.showSetupDialog()

            .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.parameters.ParameterSet.showSetupDialog()

      final MZmineProcessingStep selected = (MZmineProcessingStep) currentStepsList
          .getSelectedValue();
      final ParameterSet parameters = selected == null ? null : selected
          .getParameterSet();
      if (parameters != null) {
        parameters.showSetupDialog();
      }
    }

    if (btnSave.equals(src)) {
View Full Code Here

Examples of net.sf.mzmine.parameters.ParameterSet.showSetupDialog()

    myParameters
        .getParameter(ThreeDVisualizerParameters.retentionTimeRange)
        .setValue(rtRange);
    myParameters.getParameter(ThreeDVisualizerParameters.mzRange).setValue(
        mzRange);
    if (myParameters.showSetupDialog() == ExitCode.OK) {
      myInstance.runModule(myParameters.cloneParameter(),
          new ArrayList<Task>());
    }
  }
View Full Code Here

Examples of net.sf.mzmine.parameters.ParameterSet.showSetupDialog()

        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.parameters.ParameterSet.showSetupDialog()

    if (src == setButton) {
      if (selected == null)
        return;
      ParameterSet parameterSet = selected.getParameterSet();
      parameterSet.showSetupDialog();
    }

  }

  @Override
View Full Code Here

Examples of net.sf.mzmine.parameters.ParameterSet.showSetupDialog()

          SingleRowIdentificationParameters.NEUTRAL_MASS).setCharge(
          charge);
    }

    // Run task.
    if (parameters.showSetupDialog() == ExitCode.OK) {

      MZmineCore.getTaskController().addTask(
          new SingleRowIdentificationTask(
              parameters.cloneParameter(), row));
    }
View Full Code Here

Examples of net.sf.mzmine.parameters.ParameterSet.showSetupDialog()

  public static void singleRowSearch(final PeakList peakList,
      final PeakListRow row) {

    final ParameterSet parameters = MZmineCore.getConfiguration()
        .getModuleParameters(NistMsSearchModule.class);
    if (parameters.showSetupDialog() == ExitCode.OK) {

      MZmineCore.getTaskController().addTask(
          new NistMsSearchTask(row, peakList, parameters));
    }
  }
View Full Code Here

Examples of net.sf.mzmine.parameters.ParameterSet.showSetupDialog()

    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
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.