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

CreationChainesMacro.groovy (revision 1166)
30 30
int nUpdated = 0 // count the number of updated CHAINE
31 31

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

Also available in: Unified diff