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

CompUnitPropertiesMacro.groovy (revision 1166)
38 38
MainCorpus corpus = corpusViewSelection
39 39
AbstractCqiClient CQI = CQPSearchEngine.getCqiClient();
40 40
def word = corpus.getWordProperty()
41
def analecCorpus = AnalecCorpora.getCorpus(corpus.getID());
41
def analecCorpus = AnalecCorpora.getCorpus(corpus);
42 42

  
43 43
def units = analecCorpus.getUnites(unit_type)
44 44
units.sort() { a, b -> a.getDeb() <=> b.getDeb() ?: a.getFin() <=> b.getFin() }

Also available in: Unified diff