Changeset 1156
- Timestamp:
- Sep 14, 2009, 1:44:09 PM (13 years ago)
- Location:
- extensions/net.sf.basedb.mev/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.mev/trunk/resources/launch_mev.jsp
r1086 r1156 75 75 File tdmsFile = FileStoreUtil.getDataFile(dc, bas, "mev.tdms"); 76 76 File cghFile = FileStoreUtil.getDataFile(dc, bas, "mev.cgh"); 77 File anlFile = FileStoreUtil.getDataFile(dc, bas, "mev.anl"); 77 78 boolean allowCreateFile = bas.hasPermission(Permission.WRITE) 78 79 && sc.hasPermission(Permission.CREATE, Item.FILE); … … 155 156 <table class="form"> 156 157 <tr> 158 <td class="prompt" colspan="2">MeV analysis file</td> 159 </tr> 160 <tr> 161 <td><base:button title="Start MeV" 162 onclick="launchMev('mev.anl')" 163 image="<%=anlFile == null ? homeUrl + "/images/tm4_disabled.png" : homeUrl + "/images/tm4.png" %>" 164 disabled="<%=anlFile == null%>"/></td> 165 <td> 166 <% 167 if (anlFile == null) 168 { 169 %> 170 There is currently no MeV analysis file associated with the bioassay set. 171 <% 172 } 173 else 174 { 175 %> 176 Start MeV with the current analysis file:<br> 177 <%=HTML.encodeTags(anlFile.getName())%> <%=Base.getFileLinks(ID, anlFile, root) %> 178 <% 179 } 180 %> 181 </td> 182 </tr> 183 <tr> 157 184 <td class="prompt" colspan="2">TDMS - Tab-delimited multiple sample</td> 158 185 </tr> … … 208 235 <td><base:button title="Start MeV" 209 236 onclick="launchMev('mev.cgh')" 210 image="<%= tdmsFile == null ? homeUrl + "/images/tm4_disabled.png" : homeUrl + "/images/tm4.png" %>"237 image="<%=cghFile == null ? homeUrl + "/images/tm4_disabled.png" : homeUrl + "/images/tm4.png" %>" 211 238 disabled="<%=cghFile == null%>"/></td> 212 239 <td> -
extensions/net.sf.basedb.mev/trunk/resources/mev_jnlp.jsp
r1145 r1156 46 46 final int bioAssaySetId = Values.getInt(request.getParameter("bioassayset_id")); 47 47 final String fileType = Values.getString(request.getParameter("filetype")); 48 final String mevFileType = "mev.cgh".equals(fileType) ? "cgh" : "tdms";48 final String mevFileType = fileType.substring(4); 49 49 final String scheme = request.getScheme(); 50 50 final String serverName = request.getServerName(); -
extensions/net.sf.basedb.mev/trunk/src/net/sf/basedb/mev/Mev.java
r1153 r1156 44 44 public static final String CGH_FILE = "mev.cgh"; 45 45 46 /** 47 The external ID for the file type representing 48 a MeV Analysis file. 49 @see DataFileType#getByExternalId(net.sf.basedb.core.DbControl, String) 50 @since 1.5 51 */ 52 public static final String ANALYSIS_FILE = "mev.anl"; 53 46 54 }
Note: See TracChangeset
for help on using the changeset viewer.