Revision 2144 tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/UnitsIndexMacro.groovy

UnitsIndexMacro.groovy (revision 2144)
92 92
def allresults = [:]
93 93
for (def corpus : selection) {
94 94

  
95
	mainCorpus = corpus.getMainCorpus()
95
	def word = corpus.getWordProperty()
96
	def analecCorpus = URSCorpora.getCorpus(corpus)
96 97

  
97
	def word = mainCorpus.getWordProperty()
98
	def analecCorpus = URSCorpora.getCorpus(mainCorpus)
99

  
100 98
	def errors = AnalecUtils.isPropertyDefined(Schema.class, analecCorpus, schema_ursql)
101 99
	if (errors.size() > 0) {
102 100
		println "** The $schema_ursql schema URSQL cannot be computed in the corpus with types: $errors."

Also available in: Unified diff