Statistics
| Revision:

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

History | View | Annotate | Download (487 Bytes)

1
// Copyright © 2016 ENS de Lyon, CNRS, University of Franche-Comté
2
// Licensed under the terms of the GNU General Public License (http://www.gnu.org/licenses)
3
// @author sheiden
4
package org.txm.macro.debug
5

    
6
def printResult(def obj, String prof) {
7
        println (prof+obj.getClass().getSimpleName()+"="+obj)
8
        for (def c : obj.getChildren()) {
9
                printResult(c, prof+ " ")
10
        }
11
}
12

    
13
if (corpusViewSelection != null)
14
        printResult(corpusViewSelection.getProject(), "")
15
else 
16
        println "no selection."