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

Si2SingletonMacro.groovy (revision 1166)
35 35
corpus = corpusViewSelection
36 36
CQI = CQPSearchEngine.getCqiClient()
37 37
word = corpus.getWordProperty()
38
analecCorpus = AnalecCorpora.getCorpus(corpus.getID())
39
vue = AnalecCorpora.getVue(corpus.getID())
38
analecCorpus = AnalecCorpora.getCorpus(corpus)
39
vue = AnalecCorpora.getVue(corpus)
40 40
structure = analecCorpus.getStructure()
41 41
if (!structure.getUnites().contains(unitType)) { // check if the structure contains the unitType units
42 42
	println "Error: corpus structure does not contains unit with name=$unitType"

Also available in: Unified diff