Revision 2144 tmp/org.txm.analec.rcp/src/org/txm/macro/urs/democrat/AjoutDefinitudeMacro.groovy

AjoutDefinitudeMacro.groovy (revision 2144)
22 22
import visuAnalec.elements.Unite;
23 23
import visuAnalec.vue.Vue
24 24

  
25
if (!(corpusViewSelection instanceof MainCorpus)) {
25
if (!(corpusViewSelection instanceof CQPCorpus)) {
26 26
	println "Corpora selection is not a Corpus"
27 27
	return;
28 28
}
......
35 35

  
36 36
if (!ParametersDialog.open(this)) return;
37 37

  
38
MainCorpus corpus = corpusViewSelection
38
def corpus = corpusViewSelection
39 39
AbstractCqiClient CQI = CQPSearchEngine.getCqiClient();
40 40
def word = corpus.getWordProperty()
41 41
def analecCorpus = URSCorpora.getCorpus(corpus);

Also available in: Unified diff