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

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

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

Also available in: Unified diff