Changeset 4835
- Timestamp:
- Mar 24, 2009, 9:22:28 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/credits.txt
r4789 r4835 26 26 USA. 27 27 28 The current BASE team is (at BASE 2.10 release)28 The current BASE team is (at BASE 2.10.1 release) 29 29 30 30 Jari Häkkinen -
trunk/src/clients/web/net/sf/basedb/clients/web/extensions/menu/MenuItemAction.java
r4512 r4835 27 27 An action for extensions to the menu system. The extension point 28 28 will add menu items to the <code>Extensions</code> menu. 29 30 Currently, two menu 31 subtypes are supported: a real menu item and a menu separator. 32 Submenus are not supported. 29 <p> 30 There are three types of menu items: 31 <ul> 32 <li>A regular menu item, which is usually associated with some kind 33 of action when the user clicks on it. 34 <li>A separator item. It's just for visual appearance. It is 35 never associated with any action. 36 <li>A submenu item, which opens up a submenu when the user 37 selects it. A submenu must specify a {@link #getSubmenuId()}. 38 Regular menu items can be put into the submenu item by specifying 39 the same id for {@link #getMenuId()}. 40 </ul> 33 41 34 42 @author nicklas … … 157 165 158 166 /** 159 A menu item that opens a submenu. 167 A menu item that opens a submenu. Menu items of this type must 168 provide a unique value for {@link MenuItemAction#getSubmenuId()}. 169 A regular menu item can be placed inside a submenu by specifying the 170 same value for {@link MenuItemAction#getMenuId()}. 160 171 */ 161 172 SUBMENU, -
trunk/src/plugins/core/net/sf/basedb/plugins/AnnotationFlatFileImporter.java
r4822 r4835 240 240 "itemNotFoundError", 241 241 "Item not found", 242 "What to do if the plug-in can't find an item with the name or external ID from the file.\n\n"+ 242 "What to do if the plug-in can't find an item with the name or external ID from the file." + 243 "This also include the case when name or external ID is unspecified in the file.\n\n"+ 243 244 "skip = Skip the current data line and continue\n"+ 244 245 "fail = Stop with an error message", … … 753 754 { 754 755 items = new HashSet<NewAnnotations>(); 755 // The 'name' parameter can also query against the external ID 756 itemQuery.setParameter("nameOrId", searchParameterType.parseString(nameOrId), searchParameterType); 757 List<?> result = itemQuery.list(dc); 758 if (result.isEmpty()) 759 { 760 // No item with specified name/external ID was found 761 if (!ignoreNotFoundItems) 762 { 763 throw new ItemNotFoundException(itemType + 764 "[" + searchProperty + "=" + nameOrId + "]"); 765 } 766 else 767 { 768 numItemNotFound++; 769 } 770 } 771 if (result.size() > 1 && failIfMultipleFoundItems) 772 { 773 throw new BaseException("Found " + result.size() + " " + itemType.toString().toLowerCase() + 774 " with " + searchProperty + "=" + nameOrId); 775 } 776 for (Object item : result) 777 { 778 // Add each item that was found to the cache 779 items.add(new NewAnnotations((Annotatable)item)); 780 } 781 itemCache.put(nameOrId, items); 756 757 if (nameOrId != null) 758 { 759 // The 'name' parameter can also query against the external ID 760 itemQuery.setParameter("nameOrId", searchParameterType.parseString(nameOrId), searchParameterType); 761 List<?> result = itemQuery.list(dc); 762 if (result.isEmpty()) 763 { 764 // No item with specified name/external ID was found 765 if (!ignoreNotFoundItems) 766 { 767 throw new ItemNotFoundException(itemType + 768 "[" + searchProperty + "=" + nameOrId + "]"); 769 } 770 else 771 { 772 numItemNotFound++; 773 } 774 } 775 if (result.size() > 1 && failIfMultipleFoundItems) 776 { 777 throw new BaseException("Found " + result.size() + " " + itemType.toString().toLowerCase() + 778 " with " + searchProperty + "=" + nameOrId); 779 } 780 for (Object item : result) 781 { 782 // Add each item that was found to the cache 783 items.add(new NewAnnotations((Annotatable)item)); 784 } 785 itemCache.put(nameOrId, items); 786 } 787 else if (!ignoreNotFoundItems) 788 { 789 throw new ItemNotFoundException(itemType + "[" + searchProperty + " has no value in file]"); 790 } 791 else 792 { 793 numItemNotFound++; 794 } 782 795 } 783 796 -
trunk/src/plugins/core/net/sf/basedb/plugins/batchimport/AbstractItemImporter.java
r4736 r4835 41 41 import net.sf.basedb.core.BioPlate; 42 42 import net.sf.basedb.core.BioSource; 43 import net.sf.basedb.core.BioWell;44 43 import net.sf.basedb.core.BooleanParameterType; 45 44 import net.sf.basedb.core.DataFileType; -
trunk/www/lims/arraybatches/index.jsp
r4587 r4835 264 264 cc.configureQuery(query, true); 265 265 cc.setQuery(query); 266 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Export+ hybridizations";266 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Export+array+batches"; 267 267 } 268 268 else if ("ExportItem".equals(cmd)) … … 270 270 // Run an export plugin in single-item context 271 271 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 272 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Export+ hybridization";272 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Export+array+batch"; 273 273 } 274 274 else if ("ImportItems".equals(cmd)) … … 279 279 cc.configureQuery(query, true); 280 280 cc.setQuery(query); 281 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Import+ hybrydizations";281 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Import+array+batches"; 282 282 } 283 283 else if ("ImportItem".equals(cmd)) … … 285 285 // Run an import plugin in single-item context 286 286 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 287 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Import+ hybridization";287 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Import+array+batch"; 288 288 } 289 289 else if ("RunListPlugin".equals(cmd)) -
trunk/www/lims/arrayslides/index.jsp
r4587 r4835 312 312 cc.configureQuery(query, true); 313 313 cc.setQuery(query); 314 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Export+ hybridizations";314 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Export+array+slides"; 315 315 } 316 316 else if ("ExportItem".equals(cmd)) … … 318 318 // Run an export plugin in single-item context 319 319 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 320 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Export+ hybridization";320 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Export+array+slide"; 321 321 } 322 322 else if ("ImportItems".equals(cmd)) … … 327 327 cc.configureQuery(query, true); 328 328 cc.setQuery(query); 329 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Import+ hybrydizations";329 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Import+array+slides"; 330 330 } 331 331 else if ("ImportItem".equals(cmd)) … … 333 333 // Run an import plugin in single-item context 334 334 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 335 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Import+ hybridization";335 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Import+array+slide"; 336 336 } 337 337 else if ("RunListPlugin".equals(cmd)) -
trunk/www/views/experiments/index.jsp
r4630 r4835 303 303 cc.configureQuery(query, true); 304 304 cc.setQuery(query); 305 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Export+ raw+bioassays";305 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Export+experiments"; 306 306 } 307 307 else if ("ExportItem".equals(cmd)) … … 309 309 // Run an export plugin in single-item context 310 310 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 311 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Export+ raw+bioassay";311 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Export+experiment"; 312 312 } 313 313 else if ("ImportItems".equals(cmd)) … … 318 318 cc.configureQuery(query, true); 319 319 cc.setQuery(query); 320 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Import+ raw+bioassays";320 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Import+experiments"; 321 321 } 322 322 else if ("ImportItem".equals(cmd)) … … 324 324 // Run an import plugin in single-item context 325 325 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 326 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Import+ raw+bioassay";326 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Import+experiment"; 327 327 } 328 328 else if ("RunListPlugin".equals(cmd)) -
trunk/www/views/scans/index.jsp
r4587 r4835 268 268 cc.configureQuery(query, true); 269 269 cc.setQuery(query); 270 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Export+ raw+bioassays";270 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Export+scans"; 271 271 } 272 272 else if ("ExportItem".equals(cmd)) … … 274 274 // Run an export plugin in single-item context 275 275 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 276 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Export+ raw+bioassay";276 redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Export+scan"; 277 277 } 278 278 else if ("ImportItems".equals(cmd)) … … 283 283 cc.configureQuery(query, true); 284 284 cc.setQuery(query); 285 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Import+ raw+bioassays";285 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Import+scans"; 286 286 } 287 287 else if ("ImportItem".equals(cmd)) … … 289 289 // Run an import plugin in single-item context 290 290 ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext); 291 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Import+ raw+bioassay";291 redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Import+scan"; 292 292 } 293 293 else if ("RunListPlugin".equals(cmd))
Note: See TracChangeset
for help on using the changeset viewer.