Révision 3459

TXM/trunk/org.txm.groovy.core/src/groovy/org/txm/macro/projects/antract/ImporterCorpusOkapiMacro.groovy (revision 3459)
1
// Copyright © 2021 MY_INSTITUTION
1
// Copyright © 2022 ENS-LYON
2 2
// Licensed under the terms of the GNU General Public License version 3 (http://www.gnu.org/licenses/gpl-3.0.html)
3
// @author mdecorde
3
// @author mdecorde, sheiden
4 4

  
5 5
// STANDARD DECLARATIONS
6 6
package org.txm.macro.projects.antract
......
143 143

  
144 144
if (nb_matches != nb_identifiers) {
145 145
	println "Attention il y a $nb_matches div dans le sous-corpus alors qu'il y a $nb_identifiers identifiants de sujets dans la liste."
146
	monitorShowError("Attention il y a $nb_matches div dans le sous-corpus alors qu'il y a $nb_identifiers identifiants de sujets dans la liste.")
146
	monitorShowWarning("Attention il y a $nb_matches div dans le sous-corpus alors qu'il y a $nb_identifiers identifiants de sujets dans la liste.")
147 147
}
148 148

  
149 149
// UTILS UTILS UTILS UTILS UTILS UTILS UTILS
......
240 240
		}
241 241
	});
242 242
}
243

  
244
def monitorShowWarning(String message) {
245
	monitor.syncExec(new Runnable() {
246
		public void run() {
247
			org.eclipse.jface.dialogs.MessageDialog.openWarning(org.eclipse.swt.widgets.Display.getCurrent().getActiveShell(), "Attention", message)
248
		}
249
	});
250
}
TXM/trunk/org.txm.groovy.core/src/groovy/org/txm/macro/projects/antract/AjouterDesSujetsAuCorpusOkapiMacro.groovy (revision 3459)
1
// Copyright © 2021 ENS-LYON
1
// Copyright © 2022 ENS-LYON
2 2
// Licensed under the terms of the GNU General Public License version 3 (http://www.gnu.org/licenses/gpl-3.0.html)
3 3
// @author mdecorde
4 4

  

Formats disponibles : Unified diff