Changeset 4522


Ignore:
Timestamp:
Sep 11, 2013, 1:03:48 PM (10 years ago)
Author:
Fredrik Levander
Message:

Fixes #817.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/servlet/src/locale/en/dictionary

    r4521 r4522  
    465465MsInspectOptions=msInspect options
    466466MsInspectFeatureDetection=msInspect Feature Detection
     467MsInspectFilterResults=Filter results
    467468MsInspectImportResultsInPipeline=Import results
    468469MsInspectStrategySelect=Strategy
  • trunk/client/servlet/src/org/proteios/action/file/UseSpectrumFileForMsInspectSearchExtension.java

    r4210 r4522  
    146146    fs.setOpen(false);
    147147    form.addFieldset(fs);
     148    Checkbox<VBoolean> filterCB = new Checkbox<VBoolean>(RunMsInspect.VMSINSPECTFILTER);
     149    filterCB.setLabel("MsInspectFilterResults");
     150    filterCB.setValue("true");
     151    filterCB.setHelp("Check to filter generated feature list using default filter");
     152    filterCB.isChecked(false);
     153    fs.add(filterCB);
    148154    // Select box variables
    149155    VString validStringParam = null;
  • trunk/client/servlet/src/org/proteios/action/msInspect/RunMsInspect.java

    r4188 r4522  
    7272  public static final VBoolean VMSINSPECTIMPORTRESULTS = new VBoolean(
    7373      "active.msinspectimportresults", false);
     74  public static final VBoolean VMSINSPECTFILTER = new VBoolean(
     75      "active.msinspectfilter", false);
    7476 
    7577  @Override
     
    131133      // Default is to not import results
    132134      importResultsFlag = false;
     135    }
     136    Boolean filterFlag = getValidBoolean(RunMsInspect.VMSINSPECTFILTER);
     137    log.debug("filterFlag from request = " + filterFlag);
     138    if (filterFlag == null)
     139    {
     140      // Default is to not to filter
     141      filterFlag = false;
    133142    }
    134143    log.debug("importResultsFlag = " + importResultsFlag);
     
    201210        activeProject,
    202211        strategy,
     212        filterFlag,
    203213        blockerJob);
    204214      log.debug("msInspectJob.getId() = " + msInspectJob.getId());
     
    268278      Project activeProject,
    269279      String strategy,
     280      Boolean filter,
    270281      Job blockerJob)
    271282  {
     
    310321    BooleanParameterType uploadOutputFileFlagParam = new BooleanParameterType();
    311322    job.setParameterValue("uploadOutputFileFlag", uploadOutputFileFlagParam, uploadOutputFileFlag);
     323    //
     324    job.setParameterValue("filter", new BooleanParameterType(),filter);
    312325    //
    313326    StringParameterType timeStampParam = new StringParameterType();
  • trunk/plugin/src/org/proteios/plugins/RunMsInspectPlugin.java

    r4346 r4522  
    277277    String timeStampStr;
    278278    String strategy;
     279    Boolean filter;
    279280
    280281    msInspectInstallPath = (String) job.getValue("msInspectInstallPath");
     
    285286    dirId = (Integer) job.getValue("dirId");
    286287    uploadOutputFileFlag = (Boolean) job.getValue("uploadOutputFileFlag");
     288    filter = (Boolean) job.getValue("filter");
    287289    timeStampStr = (String) job.getValue("timeStampStr");
    288290    strategy = (String) job.getValue("strategy");
     
    291293    msInspectSearchLocal(request, response, progress, tmpDir,
    292294      msInspectInstallPath, msInspectProgramName, msInspectMemoryInMegaBytes,
    293       spectrumFileId, dirId, uploadOutputFileFlag, timeStampStr, strategy);
     295      spectrumFileId, dirId, uploadOutputFileFlag, timeStampStr, strategy, filter);
    294296    done();
    295297  }
     
    332334      String msInspectInstallPath, String msInspectProgramName, Integer msInspectMemoryInMegaBytes,
    333335      Integer spectrumFileId, Integer dirId,
    334       Boolean uploadOutputFileFlag, String timeStampStr, String strategy)
     336      Boolean uploadOutputFileFlag, String timeStampStr, String strategy, Boolean filter)
    335337  {
    336338    log.debug("msInspectInstallPath = \"" + msInspectInstallPath + "\"");
     
    436438        String strategyOption = new String("--strategy=" + strategy);
    437439        cmdList.add(strategyOption);
     440      }
     441      // Default is not to filter the feature list
     442      log.debug("Filter flag:"+filter);
     443      if (filter==null || filter.equals(false))
     444      {
     445        cmdList.add("--nofilter");
    438446      }
    439447      cmdList.add("--outdir=" + msInspectOutputDirPath);
Note: See TracChangeset for help on using the changeset viewer.