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

PremierMaillonMacro.groovy (revision 1166)
31 31
if (!ParametersDialog.open(this)) return;
32 32

  
33 33
MainCorpus corpus = corpusViewSelection
34
def analecCorpus = AnalecCorpora.getCorpus(corpus.getID());
34
def analecCorpus = AnalecCorpora.getCorpus(corpus);
35 35
Structure structure = analecCorpus.getStructure()
36 36
if (!structure.getUnites().contains(unit_type)) { // check if the structure contains the unit_type units
37 37
	println "Error: corpus structure does not contains unit with name=$unit_type"

Also available in: Unified diff