Changeset 1004


Ignore:
Timestamp:
Mar 27, 2009, 7:36:09 PM (12 years ago)
Author:
Jari Häkkinen
Message:

Removed warning suppressions, clean up of code, added missing storeValue of parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/base2/net.sf.basedb.pluginutilities/trunk/src/net/sf/basedb/plugins/AbstractRunBinaryPlugin.java

    r1002 r1004  
    9191      {
    9292        System.setErr(new PrintStream(debug_outputfile));
    93         System.err.println("Initializing super class");
     93        System.err.println("Initializing AbstractRunBinaryPlugin");
    9494      }
    9595      catch (IOException e) {
     
    9999  }
    100100
    101   @SuppressWarnings("unchecked")
     101
    102102  public void configure(GuiContext context, Request request, Response response)
    103103  {
     
    121121        storeValue(job, request, ri.getParameter(CHILD_NAME));
    122122        storeValue(job, request, ri.getParameter(CHILD_DESCRIPTION));
     123        if (selectBASconfigure)
     124          storeValue(job, request, ri.getParameter(selectBASid));
    123125
    124126        Job.ExecutionTime execTime = Job.ExecutionTime.SHORT;
     
    235237          List<BioAssay> assays = sourceBAS.getBioAssays().list(dc);
    236238          PluginParameter<BioAssay> par = new PluginParameter<BioAssay>
    237             ( "selectBAS", "Select assays", selectBASdescription,
     239            ( selectBASid, "Select assays", selectBASdescription,
    238240              new ItemParameterType<BioAssay>(BioAssay.class, assays.get(0),
    239241                                              true, 0, assays) );
     
    297299
    298300
    299   @SuppressWarnings("unchecked")
    300301  public void run(Request request, Response response, ProgressReporter _progress)
    301302  {
    302     if (debug_output) System.err.println("run");
     303    if (debug_output) System.err.println("ARBP: run");
    303304    progress=_progress;
    304305    DbControl dc=sc.newDbControl();
     
    310311      if (debug_output)
    311312      {
    312         System.err.println("run succesful");
     313        System.err.println("ARBP: run successful");
    313314        response.setError("All is okay, just forcing a BASE error.", null);
    314315      }
     
    384385  protected Boolean selectBASconfigure = false;
    385386  protected String selectBASdescription = null;
     387  protected final String selectBASid = "selectBAS";
    386388  protected String subprocess_stdin=null;
    387389  protected String subprocess_stdout=null;
Note: See TracChangeset for help on using the changeset viewer.