Changeset 1068
- Timestamp:
- May 15, 2009, 11:01:50 AM (14 years ago)
- Location:
- extensions/net.sf.basedb.mev/trunk
- Files:
-
- 5 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.mev/trunk/META-INF/extensions.xml
r1061 r1068 66 66 </action-factory> 67 67 </extension> 68 <extension69 id="net.sf.basedb.mev.testlaunchexport"70 extends="net.sf.basedb.clients.web.bioassayset.list.tools"71 >72 <index>3</index>73 <about>74 <name>Test - MeV TDMS Export</name>75 <description>76 Adds an action to the "Tools" column that exports data to a77 MeV TDMS file. For debug only.78 </description>79 </about>80 <action-factory>81 <factory-class>82 net.sf.basedb.mev.factory.MevButtonFactory83 </factory-class>84 <parameters>85 <requireSpotData>true</requireSpotData>86 <title>Test MeV TDMS file</title>87 <tooltip>Immediately creates a MeV TDMS file from the data in this bioassay set</tooltip>88 <onClick>MeV.testTDMS($ID$)</onClick>89 <icon>~/images/tm4_export.png</icon>90 <script>~/scripts/mev.jsp</script>91 </parameters>92 </action-factory>93 </extension>94 95 68 <extension 96 69 id="net.sf.basedb.mev.options" -
extensions/net.sf.basedb.mev/trunk/README
r1061 r1068 24 24 installation. Otherwise, just wait a bit and the automatic installation will 25 25 find and install the new extension. 26 5. Done. The MeV Launcher appears as an action in the "Tools" column when 27 viewing bioassay sets of an experiment. Some (per-user) options can be 28 specified by opening the 'Extensions -> MeV Launcher options' menu. 26 5. Run the plug-in installation wizard by clicking the 'New' button on the 27 'Administration -> Plugins -> Definitions' page. Make sure the option for 28 the 'Extensions directory' is selected. Install all plug-ins found in 29 the mev-launcher.jar file. 30 6. Done. 31 32 The MeV Launcher appears as an action in the "Tools" column when 33 viewing bioassay sets of an experiment. Some (per-user) options can be 34 specified by opening the 'Extensions -> MeV Launcher options' menu. 35 36 The MeV export plug-ins appears in the 'Export' dialog when viewing 37 bioassay sets of an experiment. 29 38 30 39 == Known issues == -
extensions/net.sf.basedb.mev/trunk/RELEASE
r697 r1068 15 15 * In build.xml: <property name="version" value="A.B" /> 16 16 * In META-INF/extensions.xml: <version>A.B</version> 17 * In src/net/sf/basedb/mev/MeV.java: public ... String VERSION = "A.B" 17 18 18 19 3. Make sure that the code compiles and can be packaged. -
extensions/net.sf.basedb.mev/trunk/build.xml
r1061 r1068 69 69 description="Creates the extension JAR file" 70 70 > 71 <copy todir="${build}"> 72 <fileset dir="." includes="META-INF/*" /> 73 </copy> 74 <replace token="%%plugins.jar%%" value="${jar.name}" file="${build}/META-INF/base-plugins.xml" /> 71 75 <jar 72 76 jarfile="${jar.name}" 73 77 > 74 78 <fileset dir="${build}" /> 75 <fileset dir="." includes="META-INF/**" />76 79 <fileset dir="." includes="resources/**" /> 77 80 </jar> -
extensions/net.sf.basedb.mev/trunk/resources/launch_export.jsp
r1061 r1068 50 50 DbControl dc = null; 51 51 String defaultPath = "/"; 52 String defaultFileName = " mev.txt";52 String defaultFileName = ""; 53 53 String jobName = "Create MeV TDMS file"; 54 54 try … … 58 58 ItemContext cc = sc.getCurrentContext(Item.BIOASSAYSET); 59 59 cc.setId(bioAssaySetId); 60 defaultFileName = Path.makeSafeFilename(bas.getName() + ". mev.txt", "");60 defaultFileName = Path.makeSafeFilename(bas.getName() + ".tdms.txt", ""); 61 61 jobName += " for " + bas.getName(); 62 62 try … … 89 89 { 90 90 var url = getRoot()+'common/plugin/index.jsp?ID='+getSessionId(); 91 url += '&cmd=NewJob&plugin_class=net.sf.basedb. plugins.BioAssaySetExporter';91 url += '&cmd=NewJob&plugin_class=net.sf.basedb.mev.plugin.TdmsExporterPlugin'; 92 92 url += '&item_type=BIOASSAYSET&context_type=ITEM'; 93 93 url += '&job_name=' + encodeURIComponent('<%=jobName%>'); 94 url += '¶meter:fileformat=mev.tdms';95 94 url += '¶meter:saveAs='+encodeURIComponent('<%=HTML.javaScriptEncode(defaultPath+defaultFileName)%>'); 96 95 url += '¶meter:attachToBioAssaySet=true'; … … 104 103 <base:note type="question" title="<%=title%>"> 105 104 The selected bioassay is not associated with a MeV TDMS file. 106 Do you wish to create one with the BioAssaySetExporter plug-in?105 Do you wish to create one with the MeV TDMS exporter plug-in? 107 106 <br><br> 108 <a href="test.xjsp?ID=<%=ID%>&bioassayset_id=<%=bioAssaySetId%>">Test new export</a>109 107 </base:note> 110 108 <p> -
extensions/net.sf.basedb.mev/trunk/src/net/sf/basedb/mev/export/TdmsExporter.java
r1061 r1068 19 19 import net.sf.basedb.util.Values; 20 20 import net.sf.basedb.util.export.TableWriter; 21 import net.sf.basedb.util.export.spotdata.AbstractBioAssaySetExporter;22 21 import net.sf.basedb.util.export.spotdata.AssayField; 23 22 import net.sf.basedb.util.export.spotdata.DynamicField; … … 52 51 53 52 @author nicklas 54 @ version 1.353 @since 1.3 55 54 */ 56 55 public class TdmsExporter 57 extends AbstractBioAssaySetExporter56 extends MevExporter 58 57 { 59 58 … … 67 66 {} 68 67 69 /*70 Configuration properties71 ------------------------72 */73 /**74 Set the stream were the exported data should be written.75 It is expected that the given writer is a fresh writer and76 that no data has been written to it yet.77 */78 public void setWriter(TableWriter out)79 {80 this.out = out;81 }82 // --------------------------83 84 68 /** 85 69 From AbstractBioAssaySetExporter class … … 94 78 { 95 79 super.beginExport(); 80 out = getTableWriter(); 96 81 addExperimentalFactorsAsAssayFields(); 97 82 addReporterFields();
Note: See TracChangeset
for help on using the changeset viewer.