Revision 2144 tmp/org.txm.analec.rcp/src/org/txm/macro/urs/edit/ResetAllAnnotationsMacro.groovy

ResetAllAnnotationsMacro.groovy (revision 2144)
8 8
import org.txm.searchengine.cqp.corpus.*
9 9
import visuAnalec.elements.*
10 10

  
11
if (!(corpusViewSelection instanceof MainCorpus)) {
11
if (!(corpusViewSelection instanceof CQPCorpus)) {
12 12
	println "Corpora selection is not a Corpus"
13 13
	return;
14 14
}
......
19 19
// Open the parameters input dialog box
20 20
if (!ParametersDialog.open(this)) return;
21 21

  
22
MainCorpus corpus = corpusViewSelection
22
def corpus = corpusViewSelection
23 23
def analecCorpus = URSCorpora.getCorpus(corpus);
24 24
def structure = analecCorpus.getStructure()
25 25

  
......
48 48
//	fireMessage(new StructureEvent(analecCorpus, TypeModifStructure.SUPPR_TYPE, Schema.class, type));
49 49
}
50 50

  
51
println "Done. Save the corpus to finish the reset."
51
println "Done. Save the corpus to finish the annotations reset."
52 52

  

Also available in: Unified diff