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

CreationRelationsMacro.groovy (revision 1166)
33 33
int nCreated = 0 // count the number of created RELATION
34 34

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

Also available in: Unified diff