Changeset 5145 for trunk/www/common/overview/ajax.jsp
- Timestamp:
- Oct 20, 2009, 8:50:49 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/common/overview/ajax.jsp
r4864 r5145 24 24 import="net.sf.basedb.core.SessionControl" 25 25 import="net.sf.basedb.core.DbControl" 26 import="net.sf.basedb.core.Annotation" 27 import="net.sf.basedb.core.AnnotationType" 26 28 import="net.sf.basedb.core.Item" 27 29 import="net.sf.basedb.util.overview.GenericOverview" … … 52 54 for (Node n : parent.getChildren()) 53 55 { 54 String title;55 56 String folderIcon = n.getNodeType() == Node.Type.FOLDER ? "Folder" : "Item"; 56 if (n.getItemType() == Item.ANNOTATIONTYPE && parent.getItemType() == Item.PROTOCOL)57 if (n.getItemType() == Item.ANNOTATIONTYPE) 57 58 { 58 folderIcon = "ProtocolParameter"; 59 if (parent.getItemType() == Item.PROTOCOL) 60 { 61 folderIcon = "ProtocolParameter"; 62 } 63 else 64 { 65 try 66 { 67 AnnotationType at = (AnnotationType)n.getItem(dc); 68 if (at.isProtocolParameter()) folderIcon = "ProtocolParameter"; 69 } 70 catch (Throwable t) 71 {} 72 } 59 73 } 60 74 else if (n.getItemType() == Item.ANNOTATION) 61 75 { 62 76 folderIcon = "Annotation"; 77 try 78 { 79 AnnotationType at = ((Annotation)n.getItem(dc)).getAnnotationType(); 80 if (at.isProtocolParameter()) folderIcon = "ProtocolParameter"; 81 } 82 catch (Throwable t) 83 {} 63 84 } 64 85 int numChildren = n.numChildren();
Note: See TracChangeset
for help on using the changeset viewer.