Changeset 3852


Ignore:
Timestamp:
Sep 15, 2010, 1:39:24 PM (13 years ago)
Author:
Gregory Vincic
Message:

Refs #698. Removing remaining debug log messages from FormFactory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java

    r3851 r3852  
    735735  private Select<VInteger> getNotificationModeSelectBox(int modeValue)
    736736  {
    737     log.debug("modeValue = " + modeValue);
    738737    Select<VInteger> modeS = new Select<VInteger>(
    739738      SavePreferences.VNOTIFICATIONMODE);
     
    801800  private Select<VInteger> getTablePreferencesModeSelectBox(int modeValue)
    802801  {
    803     log.debug("modeValue = " + modeValue);
    804802    Select<VInteger> modeS = new Select<VInteger>(
    805803      SavePreferences.VTABLEPREFERENCESMODE);
     
    12711269        timeInMinutesStr = retentionTimeInMinutes.toString();
    12721270      }
    1273       log.debug("retentionTimeInMinutes = " + retentionTimeInMinutes);
    12741271    }
    12751272    addTableRow(propertiesTable, "RetentionTimeInMinutes",
     
    22162213      List<String> localSampleIdList = Hit.getUniqueLocalSampleIds(
    22172214        project, dc);
    2218       log.debug("localSampleIdList = " + localSampleIdList);
    22192215      // Check if valid local sample id values exist
    22202216      boolean validValuesExist = false;
    22212217      if (localSampleIdList != null)
    22222218      {
    2223         log.debug("localSampleIdList.size() = " + localSampleIdList
    2224           .size());
    22252219        for (int i = 0; i < localSampleIdList.size(); i++)
    22262220        {
     
    22822276    {
    22832277      List<String> fractionIdList = Hit.getUniqueFractionIds(project, dc);
    2284       log.debug("fractionIdList = " + fractionIdList);
    22852278      // Check if valid fraction id values exist
    22862279      boolean validValuesExist = false;
    22872280      if (fractionIdList != null)
    22882281      {
    2289         log.debug("fractionIdList.size() = " + fractionIdList.size());
    22902282        for (int i = 0; i < fractionIdList.size(); i++)
    22912283        {
    2292           log
    2293             .debug("fractionIdList.get(" + i + ") = " + fractionIdList
    2294               .get(i));
    22952284          // Get fraction id
    22962285          String fractionId = fractionIdList.get(i);
     
    24972486    List<String> scoreTypeList1 = Hit.getUniqueScoreTypes(project1, dc);
    24982487    List<String> scoreTypeList2 = Hit.getUniqueScoreTypes(project2, dc);
    2499     log.debug("scoreTypeList1 = " + scoreTypeList1);
    2500     log.debug("scoreTypeList2 = " + scoreTypeList2);
    25012488    // Combine score type lists
    25022489    List<String> scoreTypeList = new ArrayList<String>(0);
     
    25282515      }
    25292516    }
    2530     log.debug("scoreTypeList = " + scoreTypeList);
    25312517    // Add score type settings select boxes
    25322518    validStringParam = HitsComparisonReport.VHITSCOMPARISONSCORETYPE;
     
    28242810  private boolean itemInOptionList(List<Option> optionList, String item)
    28252811  {
    2826     log.debug("item = \"" + item + "\"");
    28272812    boolean isFound = false;
    28282813    // Check if item if found as option value in option list
     
    28412826      }
    28422827    }
    2843     log.debug("End - return " + isFound);
    28442828    return isFound;
    28452829  }
     
    28582842      List<String> itemList)
    28592843  {
    2860     log.debug("itemList = " + itemList);
    28612844    // Check if all items are found among option values
    28622845    if (itemList != null)
     
    28922875      }
    28932876    }
    2894     log.debug("End - return true");
    28952877    return true;
    28962878  }
     
    34313413    // Make sure that search type is one of "MIS" (default), "SQ", "PMF"
    34323414    String searchTypeInput = mascotParameterSet.getSearchType();
    3433     log.debug("(1) searchTypeInput = " + searchTypeInput);
    34343415    if (searchTypeInput == null)
    34353416    {
     
    34413422      searchTypeInput = new String("MIS");
    34423423    }
    3443     log.debug("(2) searchTypeInput = " + searchTypeInput);
    34443424    // Get field set legend title
    34453425    String generalFSTitle = new String("MascotParameterSetGeneral");
     
    34563436      generalFSTitle = new String("MascotParameterSetGeneralPMF");
    34573437    }
    3458     log.debug("generalFSTitle = " + generalFSTitle);
     3438   
    34593439    generalFS.setTitle(generalFSTitle);
    34603440    form.addFieldset(generalFS);
     
    34863466    {
    34873467      optionList = sequenceLibraryOptionList;
    3488       log.debug("Input sequence library option list used");
    34893468    }
    34903469    selected = mascotParameterSet.getDb();
    3491     log.debug("sequence library selected = \"" + selected + "\"");
    34923470    Select<VString> sequenceLibrarySelectBox = newStringSelectBox2(
    34933471      validStringParam, optionList, selected);
     
    35073485    {
    35083486      optionList = speciesOptionList;
    3509       log.debug("Input species option list used");
    35103487    }
    35113488    selected = mascotParameterSet.getSpecies();
    3512     log.debug("species selected = \"" + selected + "\"");
    35133489    Select<VString> speciesSelectBox = newStringSelectBox2(validStringParam, optionList, selected);
    35143490    speciesSelectBox.setLabel("MascotSpecies");
     
    35273503    {
    35283504      optionList = enzymeOptionList;
    3529       log.debug("Input enzyme option list used");
    35303505    }
    35313506    selected = mascotParameterSet.getEnzyme();
     
    35463521    {
    35473522      optionList = missedCleavagesOptionList;
    3548       log.debug("Input missed cleavages option list used");
    35493523    }
    35503524    selected = mascotParameterSet.getMissedCleavages();
    3551     log.debug("missed cleavages selected = \"" + selected + "\"");
    35523525    Select<VString> missedCleavagesSelectBox = newStringSelectBox2(validStringParam, optionList, selected);
    35533526    missedCleavagesSelectBox.setLabel("MascotMissedCleavagesSelect");
     
    35653538    {
    35663539      optionList = fixedModsOptionList;
    3567       log.debug("Input fixed mods option list used");
    35683540    }
    35693541    selected = mascotParameterSet.getFixed();
    35703542    selectedList = listStringToStringList(selected, delimRegex);
    3571     log.debug("fixed mods selectedList = " + selectedList);
    35723543    Select<VString> fixedMods = newStringMultipleSelectBox(validStringParam, optionList, selectedList);
    35733544    fixedMods.setLabel("MascotFixedMods");
     
    35873558    {
    35883559      optionList = variableModsOptionList;
    3589       log.debug("Input variable mods option list used");
    35903560    }
    35913561    selected = mascotParameterSet.getVariable();
    35923562    selectedList = listStringToStringList(selected, delimRegex);
    3593     log.debug("variable mods selectedList = " + selectedList);
    35943563    Select<VString> variableMods = newStringMultipleSelectBox(
    35953564      validStringParam, optionList, selectedList);
     
    36113580      {
    36123581        optionList = quantitationOptionList;
    3613         log.debug("Input quantitation option list used");
    36143582      }
    36153583      selected = mascotParameterSet.getQuantitation();
    3616       log.debug("quantitation selected = \"" + selected + "\"");
    36173584      Select<VString> quantitationSelectBox = newStringSelectBox2(validStringParam, optionList, selected);
    36183585      quantitationSelectBox.setLabel("MascotQuantitationSelect");
     
    36433610    {
    36443611      optionList = peptideTolUnitOptionList;
    3645       log.debug("Input peptide tolerance unit option list used");
    36463612    }
    36473613    selected = mascotParameterSet.getPepTolUnit();
    3648     log.debug("peptide tolerance unit selected = \"" + selected + "\"");
    36493614    Select<VString> peptideTolUnitSelectBox = newStringSelectBox2(validStringParam, optionList, selected);
    36503615    peptideTolUnitSelectBox.setLabel("MascotPeptideToleranceUnitSelect");
     
    36653630      {
    36663631        optionList = peptideIsotopeErrorOptionList;
    3667         log.debug("Input peptide isotope error option list used");
    36683632      }
    36693633      selected = mascotParameterSet.getPeptideIsotopeError();
    3670       log.debug("peptide isotope error selected = \"" + selected + "\"");
    36713634      Select<VString> peptideIsotopeErrorSelectBox = newStringSelectBox2(
    36723635        validStringParam, optionList, selected);
     
    36923655      {
    36933656        optionList = msMsTolUnitOptionList;
    3694         log.debug("Input MS/MS tolerance unit option list used");
    36953657      }
    36963658      selected = mascotParameterSet.getMsMsTolUnit();
    3697       log.debug("MS/MS tolerance unit selected = \"" + selected + "\"");
    36983659      Select<VString> msMsTolUnitSelectBox = newStringSelectBox2(
    36993660        validStringParam, optionList, selected);
     
    37133674      {
    37143675        optionList = peptideChargeOptionList;
    3715         log.debug("Input peptide charge option list used");
    3716       }
    3717       else
    3718       {
    3719         log.debug("Default peptide charge option list used");
    37203676      }
    37213677      selected = mascotParameterSet.getPeptideCharge();
    3722       log.debug("Peptide charge selected = \"" + selected + "\"");
    37233678      Select<VString> peptideChargeSelectBox = newStringSelectBox2(
    37243679        validStringParam, optionList, selected);
     
    37373692      }
    37383693      selected = mascotParameterSet.getMassIonType();
    3739       log.debug("Mass ion type selected = \"" + selected + "\"");
    37403694      Select<VString> massIonTypeSelectBox = newStringSelectBox2(
    37413695        validStringParam, optionList, selected);
     
    37523706    }
    37533707    selected = mascotParameterSet.getMassType();
    3754     log.debug("Mass type selected = \"" + selected + "\"");
    37553708    Select<VString> massTypeSelectBox = newStringSelectBox2(
    37563709      validStringParam, optionList, selected);
     
    37703723      {
    37713724        optionList = dataFormatOptionList;
    3772         log.debug("Input data format option list used");
    37733725      }
    37743726      selected = mascotParameterSet.getDataFormat();
    3775       log.debug("Data format selected = \"" + selected + "\"");
    37763727      Select<VString> dataFormatSelectBox = newStringSelectBox2(
    37773728        validStringParam, optionList, selected);
     
    38073758      {
    38083759        optionList = instrumentOptionList;
    3809         log.debug("Input instrument option list used");
    38103760      }
    38113761      selected = mascotParameterSet.getInstrument();
    3812       log.debug("Instrument selected = \"" + selected + "\"");
    38133762      Select<VString> instrumentSelectBox = newStringSelectBox2(validStringParam, optionList, selected);
    38143763      instrumentSelectBox.setLabel("MascotInstrumentSelect");
     
    38233772      errorTolerantCB.setValue("1");
    38243773      selected = mascotParameterSet.getErrorTolerant();
    3825       log.debug("Error tolerant selected = \"" + selected + "\"");
    38263774      errorTolerantCB.isChecked(false);
    38273775      if (selected != null && selected.equals("1"))
     
    38373785    decoyCB.setValue("1");
    38383786    selected = mascotParameterSet.getDecoy();
    3839     log.debug("Decoy selected = \"" + selected + "\"");
    38403787    decoyCB.isChecked(false);
    38413788    if (selected != null && selected.equals("1"))
     
    38553802    {
    38563803      optionList = reportTopOptionList;
    3857       log.debug("Input report top option list used");
    38583804    }
    38593805    selected = mascotParameterSet.getReportTop();
    3860     log.debug("Report top selected = \"" + selected + "\"");
    38613806    Select<VString> reportTopSelectBox = newStringSelectBox2(validStringParam, optionList, selected);
    38623807    reportTopSelectBox.setLabel("MascotReportTopSelect");
     
    43584303    }
    43594304    // Use input enzyme option list if present
    4360     if (enzymeOptionList != null)
    4361     {
    4362       log.debug("Input enzyme option list size = " + enzymeOptionList
    4363         .size() + " optionList.size() = " + optionList.size());
    4364     }
    4365     else
    4366     {
    4367       log
    4368         .debug("Input enzyme option list = null optionList.size() = " + optionList
    4369           .size());
    4370     }
    43714305    if (enzymeOptionList != null && enzymeOptionList.size() >= optionList
    43724306      .size())
    43734307    {
    43744308      optionList = enzymeOptionList;
    4375       log.debug("Input enzyme option list used");
    4376     }
    4377     else
    4378     {
    4379       log.debug("Default enzyme option list used");
    43804309    }
    43814310    selected = omssaParameterSet.getEnzyme();
    4382     log.debug("enzyme selected = \"" + selected + "\"");
    4383     // selectedList = listStringToStringList(selected, delimRegex);
    4384     // log.debug("enzyme selectedList = " + selectedList);
    43854311    Select<VString> enzymeSelectBox = newStringSelectBox2(validStringParam,
    43864312      optionList, selected);
     
    43974323    optionList.add(new Option("refseq_protein", "refseq_protein"));
    43984324    // Use input sequence library option list if present
    4399     if (sequenceLibraryOptionList != null)
    4400     {
    4401       log
    4402         .debug("Input sequence library option list size = " + sequenceLibraryOptionList
    4403           .size() + " optionList.size() = " + optionList.size());
    4404     }
    4405     else
    4406     {
    4407       log
    4408         .debug("Input sequence library option list = null optionList.size() = " + optionList
    4409           .size());
    4410     }
    44114325    if (sequenceLibraryOptionList != null && sequenceLibraryOptionList
    44124326      .size() >= optionList.size())
    44134327    {
    44144328      optionList = sequenceLibraryOptionList;
    4415       log.debug("Input sequence library option list used");
    4416     }
    4417     else
    4418     {
    4419       log.debug("Default sequence library option list used");
    44204329    }
    44214330    selected = omssaParameterSet.getDb();
    4422     log.debug("sequence library selected = \"" + selected + "\"");
    44234331    Select<VString> sequenceLibrarySelectBox = newStringSelectBox2(
    44244332      validStringParam, optionList, selected);
     
    44424350    {
    44434351      optionList = speciesOptionList;
    4444       log.debug("Input species option list used");
    44454352    }
    44464353    selected = omssaParameterSet.getSpecies();
     
    44784385    {
    44794386      optionList = fixedModsOptionList;
    4480       log.debug("Input fixed mods option list used");
    44814387    }
    44824388    selected = omssaParameterSet.getFixed();
     
    45044410    {
    45054411      optionList = variableModsOptionList;
    4506       log.debug("Input variable mods option list used");
    45074412    }
    45084413    selected = omssaParameterSet.getVariable();
    45094414    selectedList = listStringToStringList(selected, delimRegex);
    4510     log.debug("variable mods selectedList = " + selectedList);
    45114415    Select<VString> variableMods = newStringMultipleSelectBox(
    45124416      validStringParam, optionList, selectedList);
     
    45354439    }
    45364440    selected = omssaParameterSet.getPrecursorSearchType();
    4537     log.debug("precursor mass search type selected = \"" + selected + "\"");
    45384441    Select<VString> precursorMassSearchTypeSelectBox = newStringSelectBox2(
    45394442      validStringParam, optionList, selected);
     
    45484451    }
    45494452    selected = omssaParameterSet.getProductSearchType();
    4550     log.debug("product mass search type selected = \"" + selected + "\"");
    4551     // selectedList = listStringToStringList(selected, delimRegex);
    4552     // log.debug("product mass search type selectedList = " + selectedList);
    45534453    Select<VString> productMassSearchTypeSelectBox = newStringSelectBox2(
    45544454      validStringParam, optionList, selected);
     
    56185518    {
    56195519      optionList = listPathDefaultParametersOptionList;
    5620       log.debug("Input list path default parameters option list used");
    56215520    }
    56225521    selected = xTandemParameterSet.getListPathDefaultParameters();
     
    57795678    {
    57805679      optionList = residueModificationMassOptionList;
    5781       log.debug("Input residue modification mass option list used");
    57825680    }
    57835681    selected = xTandemParameterSet.getResidueModificationMass();
     
    58015699    else
    58025700    {
    5803       log.debug("residue modification mass, no inserted value");
     5701
    58045702      modificationMass.setValue("");
    58055703    }
     
    58765774    else
    58775775    {
    5878       log.debug("residue potential modification mass, no inserted value");
    58795776      potentialModificationMass.setValue("");
    58805777    }
    5881     log
    5882       .debug("residue potential modification mass, potentialModificationMass.getValue() = \"" + potentialModificationMass
    5883         .getValue() + "\"");
    58845778    residueFS.add(potentialModificationMass);
    58855779    // Residue, potential modification motif
     
    59325826    {
    59335827      optionList = speciesOptionList;
    5934       log.debug("Input species option list used");
    5935     }
    5936     else
    5937     {
    5938       log.debug("Default species option list used");
    59395828    }
    59405829    selected = xTandemParameterSet.getProteinTaxon();
    5941     log.debug("taxon selected = \"" + selected + "\"");
    59425830    // Select<VString> taxon = newStringSelectBox2(validStringParam,
    59435831    // optionList, selected);
    59445832    selectedList = listStringToStringList(selected, ",\\ ");
    5945     log.debug("taxon selectedList = " + selectedList);
    59465833    Select<VString> taxon = newStringMultipleSelectBox(validStringParam,
    59475834      optionList, selectedList);
     
    59865873    {
    59875874      optionList = proSpeciesOptionList;
    5988       log.debug("Input Prokaryotes species option list used");
    5989     }
    5990     else
    5991     {
    5992       log.debug("Default Prokaryotes species option list used");
    59935875    }
    59945876    // Same selection list as for Eukaryotes taxon is used for Prokaryotes
    5995     log.debug("taxon selectedList = " + selectedList);
    59965877    Select<VString> taxon1 = newStringMultipleSelectBox(validStringParam,
    59975878      optionList, selectedList);
     
    60205901    {
    60215902      optionList = proteinCleavageSiteOptionList;
    6022       log.debug("Input protein cleavage site option list used");
    6023     }
    6024     else
    6025     {
    6026       log.debug("Default protein cleavage site option list used");
    60275903    }
    60285904    selected = xTandemParameterSet.getProteinCleavageSite();
    6029     log.debug("protein cleavage site selected = \"" + selected + "\"");
    6030     // selectedList = listStringToStringList(selected, ",\\ ");
    6031     // log.debug(""protein cleavage site selectedList = " + selectedList);
    60325905    Select<VString> proteinCleavageSiteSelectBox = newStringSelectBox2(
    60335906      validStringParam, optionList, selected);
     
    60415914    if (!itemInOptionList(optionList, selected))
    60425915    {
    6043       log
    6044         .debug("protein cleavage site, inserted value = \"" + xTandemParameterSet
    6045           .getProteinCleavageSite() + "\"");
    60465916      cleavageSite.setValue(xTandemParameterSet.getProteinCleavageSite());
    60475917    }
    60485918    else
    60495919    {
    6050       log.debug("protein cleavage site, no inserted value");
    60515920      cleavageSite.setValue("");
    60525921    }
    6053     log
    6054       .debug("protein cleavage site, cleavageSite.getValue() = \"" + cleavageSite
    6055         .getValue() + "\"");
    60565922    proteinFS.add(cleavageSite);
    60575923    // Protein, modified residue mass file
     
    62196085    else
    62206086    {
    6221       log.debug("refine potential modification mass, no inserted value");
    62226087      refinePotentialModificationMass.setValue("");
    62236088    }
    6224     log
    6225       .debug("refine potential modification mass, refinePotentialModificationMass.getValue() = \"" + refinePotentialModificationMass
    6226         .getValue() + "\"");
    62276089    refineFS.add(refinePotentialModificationMass);
    62286090    /** **************************************** */
     
    65286390    {
    65296391      optionList = sourceDatabaseOptionList;
    6530       log.debug("Input source database option list used");
    6531     }
    6532     else
    6533     {
    6534       log.debug("Default source database option list used");
    65356392    }
    65366393    selected = pikeSourceDatabase;
    6537     log.debug("source database selected = \"" + selected + "\"");
    65386394    Select<VString> sourceDatabaseSelectBox = newStringSelectBox2(
    65396395      validStringParam, optionList, selected);
     
    65616417    {
    65626418      optionList = fieldSelectOptionList;
    6563       log.debug("Input field select option list used");
    6564     }
    6565     else
    6566     {
    6567       log.debug("Default field select option list used");
    65686419    }
    65696420    selectedList = pikeFieldSelectList;
    6570     log.debug("field select selectedList = " + selectedList);
    65716421    Select<VString> fieldSelect = newStringMultipleSelectBox(
    65726422      validStringParam, optionList, selectedList);
     
    65826432    optionList.add(new Option("0", "no"));
    65836433    selected = pikeGeneOntologyCheck;
    6584     log.debug("gene ontology check selected = \"" + selected + "\"");
    65856434    Select<VString> geneOntologyCheckSelectBox = newStringSelectBox2(
    65866435      validStringParam, optionList, selected);
     
    66046453    {
    66056454      optionList = inputFileTypeOptionList;
    6606       log.debug("Input input file type option list used");
    6607     }
    6608     else
    6609     {
    6610       log.debug("Default input file type option list used");
    66116455    }
    66126456    selected = pikeInputFileType;
    6613     log.debug("input file type selected = \"" + selected + "\"");
    66146457    Select<VString> inputFileTypeSelectBox = newStringSelectBox2(
    66156458      validStringParam, optionList, selected);
     
    66326475    {
    66336476      optionList = outputFileTypeOptionList;
    6634       log.debug("Input output file type option list used");
    6635     }
    6636     else
    6637     {
    6638       log.debug("Default output file type option list used");
    66396477    }
    66406478    selectedList = pikeOutputFileTypeList;
    6641     log.debug("output file type selectedList = " + selectedList);
    66426479    Select<VString> outputFileTypeSelect = newStringMultipleSelectBox(
    66436480      validStringParam, optionList, selectedList);
     
    71787015     */
    71797016    Form form = null;
    7180     log
    7181       .debug("FormFactory::getForm(): Start =====================================");
    7182     if (template == null)
    7183     {
    7184       log.debug("FormFactory::getForm(): template  == null");
    7185     }
    71867017    if (template instanceof FormTemplateImpl)
    71877018    {
    7188       log
    7189         .debug("FormFactory::getForm(): template instance of FormTemplateImpl");
    71907019      FormTemplateImpl formTemplate = (FormTemplateImpl) template;
    71917020      form = getFormImpl(formTemplate);
    71927021    }
    7193     else
    7194     {
    7195       log
    7196         .debug("FormFactory::getForm(): template not instance of FormTemplateImpl");
    7197     }
    7198     /*
    7199      * Return generated form.
    7200      */
    72017022    return form;
    72027023  }
     
    72147035     * Analyze object class
    72157036     */
    7216     if (formTemplate == null)
    7217     {
    7218       log.debug("FormFactory::getFormImpl(): formTemplate  == null");
    7219       return null;
    7220     }
    7221     log
    7222       .debug("FormFactory::getFormImpl(): Start =====================================");
    7223     log
    7224       .debug("FormFactory::getFormImpl(): formTemplate.getItemObject() = \"" + formTemplate
    7225         .getItemObject() + "\"");
    7226     log
    7227       .debug("FormFactory::getFormImpl(): formTemplate.getItemClass() = \"" + formTemplate
    7228         .getItemClass() + "\"");
    7229     log
    7230       .debug("FormFactory::getFormImpl(): formTemplate.isReadOnlyForm = " + formTemplate
    7231         .isReadOnlyForm());
    7232     if (formTemplate.getExcludedDeclMethods() == null)
    7233     {
    7234       log
    7235         .debug("FormFactory::getFormImpl(): formTemplate.getExcludedDeclMethods() == null");
    7236     }
    7237     else
    7238     {
    7239       log
    7240         .debug("FormFactory::getFormImpl(): formTemplate.getExcludedDeclMethods().size() = " + formTemplate
    7241           .getExcludedDeclMethods().size());
    7242       for (int i = 0; i < formTemplate.getExcludedDeclMethods().size(); i++)
    7243       {
    7244         log
    7245           .debug("FormFactory::getFormImpl(): formTemplate.getExcludedDeclMethods().get(" + i + ") = \"" + formTemplate
    7246             .getExcludedDeclMethods().get(i) + "\"");
    7247       }
    7248     }
     7037
    72497038    /*
    72507039     * Get class from formTemplate itemObject or itemClass.
     
    72687057      addExcludedDeclMethods(formTemplate.getExcludedDeclMethods());
    72697058    }
    7270     log
    7271       .debug("FormFactory::getFormImpl(): (After checking for itemObject) itemClass = \"" + itemClass + "\"");
    72727059    String clsName = new String("");
    72737060    if (itemClass != null)
     
    72757062      clsName = itemClass.getSimpleName();
    72767063    }
    7277     log.debug("FormFactory::getFormImpl(): clsName = \"" + clsName + "\"");
     7064
    72787065    /***********************************************************************
    72797066     * Main fieldset
     
    72817068    Fieldset mainFS = new Fieldset();
    72827069    String mainFsName = new String("Properties");
    7283     // if (clsName != null && !clsName.equals(""))
    7284     // {
    7285     // mainFsName = clsName;
    7286     // }
    72877070    mainFS.setTitle(mainFsName);
    72887071    /*
     
    73097092      catch (InvocationTargetException e)
    73107093      {
    7311         log
    7312           .warn("FormFactory::getFormImpl(): InvocationTargetException when invoking method \"" + getIdMethodName + "\":" + e);
    73137094        itemId = 0;
    73147095      }
    73157096      catch (IllegalAccessException e)
    73167097      {
    7317         log
    7318           .warn("FormFactory::getFormImpl(): IllegalAccessException when invoking method \"" + getIdMethodName + "\":" + e);
    73197098        itemId = 0;
    73207099      }
    73217100      catch (java.lang.NumberFormatException e)
    73227101      {
    7323         log
    7324           .warn("FormFactory::getFormImpl(): NumberFormatException when invoking method \"" + getIdMethodName + "\":" + e);
    73257102        itemId = 0;
    73267103      }
     
    73367113      idF.setValue(itemId);
    73377114      idF.setDisabled(true);
    7338       log
    7339         .debug("FormFactory::getFormImpl(): Hidden TextField idF set to " + itemId);
    7340     }
    7341     else
    7342     {
    7343       log
    7344         .debug("FormFactory::getFormImpl(): Hidden TextField idF NOT set, itemId = " + itemId);
    73457115    }
    73467116    /*
     
    73587128    cnF.setValue(classNameFull);
    73597129    cnF.setDisabled(true);
    7360     log
    7361       .debug("FormFactory::getFormImpl(): Hidden TextField cnF set to \"" + classNameFull + "\"");
    73627130    /*
    73637131     * Add readOnlyForm field rofF (hidden).
     
    73687136    rofF.setValue(formTemplate.isReadOnlyForm());
    73697137    rofF.setDisabled(true);
    7370     log
    7371       .debug("FormFactory::getFormImpl(): Hidden TextField rofF (readOnlyForm field) set to " + formTemplate
    7372         .isReadOnlyForm());
    73737138    /*
    73747139     * Keep track on whether public setter methods exist, in order to know
     
    74617226          }
    74627227        }
    7463         log
    7464           .debug("FormFactory::getFormImpl(): methodName = \"" + methodName + "\"  returnTypeOfGetterMethod = \"" + returnTypeOfGetterMethod + "\" returnTypeStr = \"" + returnTypeStr + "\" returnTypeOK = " + returnTypeOK);
    74657228        if (returnTypeOK)
    74667229        {
     
    75667329      }
    75677330    }
    7568     for (int i = 0; i < declaredMethodArr.length; i++)
    7569     {
    7570       Method method = declaredMethodArr[i];
    7571       String modStr = methodModifierString(method);
    7572       String methodName = method.getName();
    7573       String methodReturnType = method.getReturnType().getName();
    7574       if (getExcludedDeclMethods().contains(methodName))
    7575       {
    7576         log
    7577           .debug("FormFactory::getFormImpl(): *Excluded* " + modStr + " " + methodReturnType + " declaredMethodArr[" + i + "].getName() = \"" + methodName + "\"");
    7578       }
    7579     }
     7331
    75807332    /*
    75817333     * Check if object supports method getAnnotationSet().
     
    75877339      methodGeneralArr = itemClass.getMethods();
    75887340    }
    7589     log
    7590       .debug("FormFactory::getFormImpl(): methodGeneralArr.length = " + methodGeneralArr.length);
    75917341    for (int i = 0; i < methodGeneralArr.length; i++)
    75927342    {
     
    76587408        .substring(1, clsName.length()) + "Form";
    76597409    }
    7660     log
    7661       .debug("FormFactory::getFormImpl(): formName = \"" + formName + "\"");
    76627410    Form form = new Form(formName);
    76637411    form.setTitle(clsName);
     
    76707418      form.addFieldset(annotationFS);
    76717419    }
    7672     log
    7673       .debug("FormFactory::getFormImpl(): hasSetterMethods = " + hasSetterMethods);
    76747420    /*
    76757421     * Return generated form.
     
    76997445    }
    77007446    String clsName = cls.getSimpleName();
    7701     log
    7702       .debug("FormFactory::getDbControlForObject(): clsName = \"" + clsName + "\"");
    77037447    /*
    77047448     * Check if object supports method getDbControl().
     
    77067450    DbControl dc = null;
    77077451    Method[] methodGeneralArr = cls.getMethods();
    7708     log
    7709       .debug("FormFactory::getDbControlForObject(): methodGeneralArr.length = " + methodGeneralArr.length);
    77107452    for (int i = 0; i < methodGeneralArr.length; i++)
    77117453    {
     
    77527494      Class<? extends Object> cls)
    77537495  {
    7754     log
    7755       .debug("FormFactory::fetchPublicMethodForObject(): publMethodName = \"" + publMethodName + "\"");
    77567496    if (cls == null)
    77577497    {
     
    77597499    }
    77607500    String clsName = cls.getSimpleName();
    7761     log
    7762       .debug("FormFactory::fetchPublicMethodForObject(): clsName = \"" + clsName + "\"");
    77637501    /*
    77647502     * Check if object supports public method with desired name.
     
    77827520      }
    77837521    }
    7784     /*
    7785      * Return method.
    7786      */
    7787     if (publMethod == null)
    7788     {
    7789       log
    7790         .debug("FormFactory::fetchPublicMethodForObject(): publMethod == null");
    7791     }
    7792     else
    7793     {
    7794       log
    7795         .debug("FormFactory::fetchPublicMethodForObject(): publMethod.getName() = \"" + publMethod
    7796           .getName() + "\"");
    7797     }
    77987522    return publMethod;
    77997523  }
     
    78687592      count += spectrumSearchCount;
    78697593    }
    7870     log.debug("FormFactory::getTrashCanForm(): dirCount = " + dirCount);
    7871     log.debug("FormFactory::getTrashCanForm(): fileCount = " + fileCount);
    7872     log.debug("FormFactory::getTrashCanForm(): jobCount = " + jobCount);
    7873     log
    7874       .debug("FormFactory::getTrashCanForm(): spectrumSearchCount = " + spectrumSearchCount);
    7875     log.debug("FormFactory::getTrashCanForm(): count = " + count);
    78767594    // Add info line(s) on number of items of each class to delete
    78777595    if (count == 0)
     
    86018319  private Select<VInteger> getProtocolSelectBox(Class cls, Object obj)
    86028320  {
    8603     log.debug("cls = " + cls + " obj = " + obj);
    86048321    Select<VInteger> protocolS = new Select<VInteger>(VPROTOCOLID);
    86058322    protocolS.setLabel("Protocol");
     
    86358352          if (mbm instanceof Extract)
    86368353          {
    8637             log.debug("MeasuredBioMaterial instanceof Extract");
    86388354            pTypeList.add(ProtocolType.EXTRACTION);
    86398355          }
    86408356          if (mbm instanceof LabeledExtract)
    86418357          {
    8642             log
    8643               .debug("MeasuredBioMaterial instanceof LabeledExtract");
    86448358            pTypeList.add(ProtocolType.LABELING);
    8645           }
    8646           if (mbm instanceof MeasuredArea)
    8647           {
    8648             log
    8649               .debug("MeasuredBioMaterial instanceof MeasuredArea");
    8650             // pTypeList.add(ProtocolType.EXTRACTION);
    86518359          }
    86528360          if (mbm instanceof Sample)
    86538361          {
    8654             log.debug("MeasuredBioMaterial instanceof Sample");
    86558362            pTypeList.add(ProtocolType.SAMPLING);
    86568363          }
    8657           log.debug("MeasuredBioMaterial is pooled = " + mbm
    8658             .isPooled());
    86598364          if (mbm.isPooled())
    86608365          {
     
    86648369      }
    86658370    }
    8666     log.debug("pTypeList = " + pTypeList);
    86678371    // Get optional input protocol
    86688372    Protocol inProtocol = null;
     
    86718375      BioMaterialEvent<?> bme = (BioMaterialEvent<?>) obj;
    86728376      inProtocol = bme.getProtocol();
    8673     }
    8674     if (inProtocol != null)
    8675     {
    8676       log
    8677         .debug("inProtocol = " + inProtocol + " inProtocol.isRemoved() = " + inProtocol
    8678           .isRemoved());
    8679     }
    8680     else
    8681     {
    8682       log.debug("inProtocol = " + inProtocol);
    86838377    }
    86848378    // Get protocols
     
    88248518  {
    88258519    List<String> stringList = null;
    8826     log
    8827       .debug("listString = \"" + listString + "\" delimiterRegex = \"" + delimiterRegex + "\"");
    88288520    if (listString != null)
    88298521    {
     
    88318523      for (String part : listString.split(delimiterRegex, -1))
    88328524      {
    8833         log.debug("part = \"" + part + "\"");
    88348525        // Add list part if not already in list
    88358526        if (part != null && !stringList.contains(part))
     
    88398530      }
    88408531    }
    8841     log.debug("stringList = " + stringList);
    88428532    return stringList;
    88438533  }
Note: See TracChangeset for help on using the changeset viewer.