Revision 1094 tmp/org.txm.analec.rcp/src/org/txm/macro/analec/exploit/StructuresIndexMacro.groovy

StructuresIndexMacro.groovy (revision 1094)
84 84
import org.txm.Toolbox
85 85
import org.eclipse.ui.console.*
86 86
import org.txm.macro.cqp.*
87
import org.txm.searchengine.cqp.corpus.Corpus
87
import org.txm.searchengine.cqp.corpus.CQPCorpus
88 88
import org.txm.searchengine.cqp.corpus.Partition
89 89
import org.txm.searchengine.cqp.corpus.Property
90 90
import org.txm.searchengine.cqp.corpus.QueryResult
......
98 98

  
99 99
def selection = []
100 100
for (def s : corpusViewSelections) {
101
	if (s instanceof Corpus) selection << s
101
	if (s instanceof CQPCorpus) selection << s
102 102
	else if (s instanceof Partition) selection.addAll(s.getParts())
103 103
}
104 104

  
......
160 160
}
161 161

  
162 162
// function to print the statistics of an index of a query
163
def print_freq = { Corpus c, q, p ->
163
def print_freq = { CQPCorpus c, q, p ->
164 164

  
165 165
	// appel du moteur
166 166
	//println "QUERY=$q"

Also available in: Unified diff