Example usage for weka.gui.scripting GroovyScript GroovyScript

List of usage examples for weka.gui.scripting GroovyScript GroovyScript

Introduction

In this page you can find the example usage for weka.gui.scripting GroovyScript GroovyScript.

Prototype

public GroovyScript(Document doc) 

Source Link

Document

Initializes the script.

Usage

From source file:org.pentaho.dm.kf.GroovyComponentCustomizer.java

License:Open Source License

public void setObject(Object object) {
    m_groovyP = (GroovyComponent) object;

    m_script = new GroovyScript(m_textPane.getDocument());

    String script = m_groovyP.getScript();
    if (script != null && script.length() > 0) {
        m_script.setContent(script);//from  w w w.  ja v  a  2s  . c o m
    }
}