Statistics
| Revision:

root / tmp / org.txm.groovy.core / src / groovy / org / txm / macro / debug / DescribeTXMResultMacro.groovy @ 1804

History | View | Annotate | Download (487 Bytes)

1 1804 mdecorde
// Copyright © 2016 ENS de Lyon, CNRS, University of Franche-Comté
2 1804 mdecorde
// Licensed under the terms of the GNU General Public License (http://www.gnu.org/licenses)
3 1804 mdecorde
// @author sheiden
4 1804 mdecorde
package org.txm.macro.debug
5 1804 mdecorde
6 1804 mdecorde
def printResult(def obj, String prof) {
7 1804 mdecorde
        println (prof+obj.getClass().getSimpleName()+"="+obj)
8 1804 mdecorde
        for (def c : obj.getChildren()) {
9 1804 mdecorde
                printResult(c, prof+ " ")
10 1804 mdecorde
        }
11 1804 mdecorde
}
12 1804 mdecorde
13 1804 mdecorde
if (corpusViewSelection != null)
14 1804 mdecorde
        printResult(corpusViewSelection.getProject(), "")
15 1804 mdecorde
else
16 1804 mdecorde
        println "no selection."