Changeset 2346 for trunk/src/examples
- Timestamp:
- Jun 1, 2006, 8:35:44 AM (16 years ago)
- 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 222 222 Check if the item is a {@link BioAssaySet}. 223 223 */ 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; 227 236 } 228 237 /** -
trunk/src/examples/plugins/src/net/sf/basedb/exampleplugins/ExampleImporter.java
r2168 r2346 32 32 import net.sf.basedb.core.PluginParameter; 33 33 import net.sf.basedb.core.ProgressReporter; 34 import net.sf.basedb.core.ReporterList; 34 35 import net.sf.basedb.core.RequestInformation; 35 36 … … 173 174 } 174 175 /** 175 Always false, we are not dealing with individual items.176 */ 177 public booleanisInContext(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; 180 181 } 181 182 /**
Note: See TracChangeset
for help on using the changeset viewer.