Search in sources :

Example 1 with JavaSnippetFields

use of org.knime.base.node.jsnippet.util.JavaSnippetFields in project knime-core by knime.

the class JSnippetFieldsController method updateData.

/**
 * Update the settings and input spec.
 * @param settings the settings
 * @param spec the input spec
 * @param flowVars the available flow variables
 */
public void updateData(final JavaSnippetSettings settings, final DataTableSpec spec, final Map<String, FlowVariable> flowVars) {
    m_inFieldsTable.updateData(settings.getJavaSnippetFields(), spec, flowVars);
    m_outFieldsTable.updateData(settings.getJavaSnippetFields(), spec, flowVars);
    // update snippet.
    m_snippet.setJavaSnippetFields(new JavaSnippetFields(m_inFieldsTable.getInColFields(), m_inFieldsTable.getInVarFields(), m_outFieldsTable.getOutColFields(), m_outFieldsTable.getOutVarFields()));
}
Also used : JavaSnippetFields(org.knime.base.node.jsnippet.util.JavaSnippetFields)

Aggregations

JavaSnippetFields (org.knime.base.node.jsnippet.util.JavaSnippetFields)1