Revision 1166 tmp/org.txm.analec.rcp/src/org/txm/macro/analec/UnitsMacro.groovy

UnitsMacro.groovy (revision 1166)
12 12
import org.txm.rcp.swt.widget.parameters.*
13 13
import org.txm.analec.*
14 14
import org.txm.searchengine.cqp.AbstractCqiClient;
15
import org.txm.searchengine.cqp.CQPSearchEngine
15 16
import org.txm.searchengine.cqp.corpus.*
16 17
import visuAnalec.donnees.Structure;
17 18
import visuAnalec.elements.Unite;
......
30 31
MainCorpus corpus = corpusViewSelection
31 32
AbstractCqiClient CQI = CQPSearchEngine.getCqiClient();
32 33
def word = corpus.getWordProperty()
33
def analecCorpus = AnalecCorpora.getCorpus(corpus.getID());
34
def analecCorpus = AnalecCorpora.getCorpus(corpus);
34 35

  
35 36
int n = 1;
36 37
def units = analecCorpus.getUnites(unit_type)

Also available in: Unified diff