Changeset 3779
- Timestamp:
- Aug 18, 2010, 3:35:14 PM (13 years ago)
- Location:
- trunk/contrib/SpectrumLibraryExport/src/satoshi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contrib/SpectrumLibraryExport/src/satoshi/LibraryExportForm.java
r3702 r3779 5 5 import org.proteios.Context; 6 6 import org.proteios.ContextEnabled; 7 import org.proteios. FileContext;7 import org.proteios.TableToolbarContext; 8 8 import org.proteios.action.ProteiosAction; 9 import org.proteios.action.feature.FeatureHitMatchForm; 9 10 import org.proteios.action.hit.CreateProteinAssemblyJob; 11 import org.proteios.core.Hit; 10 12 import org.proteios.gui.Title; 11 13 import org.proteios.gui.Toolbar; … … 59 61 TextField<String> fdrCutOff = new TextField<String>(FDRCUTOFF); 60 62 fdrCutOff.setLabel(getLocale().get("FDR cutoff")); 63 fdrCurOff.setValue("0.01"); 61 64 fieldSet.add(fdrCutOff); 62 65 63 66 TextField<String> filename = new TextField<String>(OUTFILENAME); 64 67 filename.setLabel(getLocale().get(".mgf file name")); 68 filename.setValue("spectrum_library.mgf"); 65 69 fieldSet.add(filename); 66 70 67 71 TextField<String> filename2 = new TextField<String>(OUTFILENAME2); 72 filename2.setValue("spectrum_library.msp"); 68 73 filename2.setLabel(getLocale().get(".msp file name")); 69 74 fieldSet.add(filename2); … … 71 76 Checkbox<VBoolean> mgfON = new Checkbox<VBoolean>(MGFFORMAT); 72 77 mgfON.setValue("true"); // default check value 73 mgfON.isChecked( true); // default check status78 mgfON.isChecked(false); // default check status 74 79 mgfON.setLabel(getLocale().get(".mgf format as output")); 75 80 fieldSet.add(mgfON); … … 100 105 101 106 102 /** 103 * Tell the application in which context this action should be available 104 */ 107 private static List<Context> contexts = new ArrayList<Context>(1); 108 static 109 { 110 TableToolbarContext btn = new TableToolbarContext("libraryexport", 111 "Library export", LibraryExportForm.class, Hit.class); 112 contexts.add(btn); 113 } 114 115 105 116 public List<Context> listContexts() 106 117 { 107 List<Context> contexts = new ArrayList<Context>(1);108 /*109 * We want our action to appear as an extension when viewing files. Do110 * this by adding a FileContext to the list of contexts.111 */112 FileContext files = new FileContext("Library export", "Create .mgf and .msp files from combinedHits",113 LibraryExportForm.class);114 contexts.add(files);115 118 return contexts; 116 119 } 120 117 121 } -
trunk/contrib/SpectrumLibraryExport/src/satoshi/LibraryExportPlugin.java
r3778 r3779 192 192 protected String getSuccessMessage() 193 193 { 194 return "Report generated: " + outfile; 195 } 196 197 198 protected String getSuccessMessage2() // never called 199 { 200 return "Report generated: " + outfile2; 194 String retval = "Done."; 195 if (outfile != null) 196 retval += " Library exported: " + outfile; 197 if (outfile2 != null) 198 retval += " Library exported: " + outfile2; 199 return retval; 201 200 } 202 201
Note: See TracChangeset
for help on using the changeset viewer.