Revision 148 tmp/org.txm.core/src/groovy/org/txm/export/ExportCAH.groovy

ExportCAH.groovy (revision 148)
1 1
package org.txm.export
2 2

  
3 3
//import org.txm.rcpapplication.views.*
4
import org.txm.functions.classification.CAH
4
import org.txm.functions.classification.*
5 5
import org.txm.stat.engine.r.*
6 6
// uncomment this
7 7
//import org.eclipse.jface.viewers.IStructuredSelection
......
25 25
	});
26 26
println("Selected object: "+obj)
27 27

  
28
if (obj != null && obj instanceof CAH) {
28
//TODO temporary commented
29
//if (obj != null && obj instanceof CAH) {
29 30
	def rw = RWorkspace.getRWorkspaceInstance()
30 31
	rw.eval("sink(file=\"" + outfile.getAbsolutePath().replace("\\", "\\\\")+"\")")
31
	rw.eval("print("+((CAH)obj).getSymbol()+")")
32
	rw.eval("print("+obj.getSymbol()+")")
32 33
	rw.eval("sink()")
33 34
	println("CAH saved in file: "+outfile)
34
}
35
//}

Also available in: Unified diff