Revision 453

tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/function/ComputeInterTextDistance.java (revision 453)
6 6
import org.eclipse.core.commands.IHandlerListener;
7 7
import org.eclipse.jface.viewers.IStructuredSelection;
8 8
import org.eclipse.ui.handlers.HandlerUtil;
9
import org.rosuda.REngine.REXPMismatchException;
10 9
import org.txm.functions.intertextualdistance.InterTextDistance;
11 10
import org.txm.lexicaltable.core.functions.LexicalTable;
12
import org.txm.rcp.utils.Logger;
13
import org.txm.searchengine.cqp.clientExceptions.CqiClientException;
14
import org.txm.searchengine.cqp.clientExceptions.InvalidCqpIdException;
15
import org.txm.statsengine.core.StatException;
16 11

  
17 12
public class ComputeInterTextDistance extends AbstractHandler {
18 13

  
......
39 34
		LexicalTable table = (LexicalTable) s;
40 35
		InterTextDistance dist = new InterTextDistance(table.getData());
41 36

  
42
		try {
43
			dist.compute();
44
			table.getPartition().getResults().add(dist);
45
		} catch (CqiClientException e) {
46
			// TODO Auto-generated catch block
47
			org.txm.rcp.utils.Logger.printStackTrace(e);
48
		} catch (InvalidCqpIdException e) {
49
			// TODO Auto-generated catch block
50
			org.txm.rcp.utils.Logger.printStackTrace(e);
51
		} catch (REXPMismatchException e) {
52
			// TODO Auto-generated catch block
53
			org.txm.rcp.utils.Logger.printStackTrace(e);
54
		} catch (StatException e) {
55
			// TODO Auto-generated catch block
56
			org.txm.rcp.utils.Logger.printStackTrace(e);
57
		}
37
		dist.compute();
38
		table.getPartition().getResults().add(dist);
39

  
58 40
		return null;
59 41
	}
60 42

  
tmp/org.txm.textsbalance.rcp/META-INF/MANIFEST.MF (revision 453)
4 4
Bundle-SymbolicName: org.txm.textsbalance.rcp;singleton:=true
5 5
Bundle-Version: 1.0.0.qualifier
6 6
Bundle-Vendor: Textometrie.org
7
Require-Bundle: org.txm.rcp;bundle-version="0.7.7",
7
Require-Bundle: org.txm.searchengine.cqp.core;bundle-version="1.1.0",
8
 org.txm.searchengine.core;bundle-version="1.0.0",
9
 org.txm.rcp;bundle-version="0.7.7",
8 10
 org.eclipse.core.runtime;bundle-version="3.10.0",
9 11
 org.eclipse.ui;bundle-version="3.106.1",
10 12
 org.eclipse.jface.text,

Also available in: Unified diff