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

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

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

Also available in: Unified diff