Changeset 2346 for trunk/src/examples


Ignore:
Timestamp:
Jun 1, 2006, 8:35:44 AM (16 years ago)
Author:
Nicklas Nordborg
Message:

Fixed compilation bug due to core interface changes.

Location:
trunk/src/examples/plugins/src/net/sf/basedb/exampleplugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/examples/plugins/src/net/sf/basedb/exampleplugins/ExampleAnalyzer.java

    r2155 r2346  
    222222    Check if the item is a {@link BioAssaySet}.
    223223  */
    224   public boolean isInContext(GuiContext context, Object item)
    225   {
    226     return item instanceof BioAssaySet;
     224  public String isInContext(GuiContext context, Object item)
     225  {
     226    String message = null; 
     227    if (item == null)
     228    {
     229      message = "The item is null";
     230    }
     231    else if (!(item instanceof BioAssaySet))
     232    {
     233      message = "The item is not a BioAssaySet: " + item;
     234    }
     235    return message;
    227236  }
    228237  /**
  • trunk/src/examples/plugins/src/net/sf/basedb/exampleplugins/ExampleImporter.java

    r2168 r2346  
    3232import net.sf.basedb.core.PluginParameter;
    3333import net.sf.basedb.core.ProgressReporter;
     34import net.sf.basedb.core.ReporterList;
    3435import net.sf.basedb.core.RequestInformation;
    3536
     
    173174  }
    174175  /**
    175     Always false, we are not dealing with individual items.
    176   */
    177   public boolean isInContext(GuiContext context, Object item)
    178   {
    179     return false;
     176    Always null, we are not dealing with individual items.
     177  */
     178  public String isInContext(GuiContext context, Object item)
     179  {
     180    return null;
    180181  }
    181182  /**
Note: See TracChangeset for help on using the changeset viewer.