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

AjoutDefinitudeMacro.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
Structure structure = analecCorpus.getStructure()
43 43
if (!structure.getUnites().contains(unit_type)) { // check if the structure contains the unit_type units
44 44
	println "Error: corpus structure does not contains unit with name=$unit_type"

Also available in: Unified diff