Search in sources :

Example 6 with JavaScriptingSettings

use of org.knime.ext.sun.nodes.script.settings.JavaScriptingSettings in project knime-core by knime.

the class JavaIfSwitchNodeDialogPane method saveSettingsTo.

/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) throws InvalidSettingsException {
    JavaScriptingSettings jsSettings = m_customizer.createSettings();
    m_panel.saveSettingsTo(jsSettings);
    jsSettings.saveSettingsTo(settings);
}
Also used : JavaScriptingSettings(org.knime.ext.sun.nodes.script.settings.JavaScriptingSettings)

Example 7 with JavaScriptingSettings

use of org.knime.ext.sun.nodes.script.settings.JavaScriptingSettings in project knime-core by knime.

the class JavaIfSwitchNodeModel method loadValidatedSettingsFrom.

/**
 * {@inheritDoc}
 */
@Override
protected void loadValidatedSettingsFrom(final NodeSettingsRO settings) throws InvalidSettingsException {
    JavaScriptingSettings jsSettings = m_customizer.createSettings();
    jsSettings.loadSettingsInModel(settings);
    m_settings = jsSettings;
}
Also used : JavaScriptingSettings(org.knime.ext.sun.nodes.script.settings.JavaScriptingSettings)

Example 8 with JavaScriptingSettings

use of org.knime.ext.sun.nodes.script.settings.JavaScriptingSettings in project knime-core by knime.

the class JavaScriptingNodeModel method loadValidatedSettingsFrom.

/**
 * {@inheritDoc}
 */
@Override
protected void loadValidatedSettingsFrom(final NodeSettingsRO settings) throws InvalidSettingsException {
    JavaScriptingSettings temp = m_customizer.createSettings();
    temp.loadSettingsInModel(settings);
    m_settings = temp;
}
Also used : JavaScriptingSettings(org.knime.ext.sun.nodes.script.settings.JavaScriptingSettings)

Example 9 with JavaScriptingSettings

use of org.knime.ext.sun.nodes.script.settings.JavaScriptingSettings in project knime-core by knime.

the class JavaEditVariableNodeDialogPane method saveSettingsTo.

/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) throws InvalidSettingsException {
    JavaScriptingSettings jsSettings = m_customizer.createSettings();
    m_panel.saveSettingsTo(jsSettings);
    jsSettings.saveSettingsTo(settings);
}
Also used : JavaScriptingSettings(org.knime.ext.sun.nodes.script.settings.JavaScriptingSettings)

Example 10 with JavaScriptingSettings

use of org.knime.ext.sun.nodes.script.settings.JavaScriptingSettings in project knime-core by knime.

the class JavaEditVariableNodeDialogPane method loadSettingsFrom.

/**
 * {@inheritDoc}
 */
@Override
protected void loadSettingsFrom(final NodeSettingsRO settings, final PortObjectSpec[] specs) throws NotConfigurableException {
    JavaScriptingSettings jsSettings = m_customizer.createSettings();
    jsSettings.loadSettingsInDialog(settings, JavaEditVariableNodeModel.EMPTY_SPEC);
    m_panel.loadSettingsFrom(jsSettings, JavaEditVariableNodeModel.EMPTY_SPEC);
}
Also used : JavaScriptingSettings(org.knime.ext.sun.nodes.script.settings.JavaScriptingSettings)

Aggregations

JavaScriptingSettings (org.knime.ext.sun.nodes.script.settings.JavaScriptingSettings)13 IOException (java.io.IOException)2 InvalidSettingsException (org.knime.core.node.InvalidSettingsException)2 ColumnCalculator (org.knime.ext.sun.nodes.script.calculator.ColumnCalculator)2 File (java.io.File)1 URL (java.net.URL)1 ArrayList (java.util.ArrayList)1 NoSuchElementException (java.util.NoSuchElementException)1 StringUtils (org.apache.commons.lang3.StringUtils)1 Path (org.eclipse.core.runtime.Path)1 Manipulator (org.knime.base.node.preproc.stringmanipulation.manipulator.Manipulator)1 DataCell (org.knime.core.data.DataCell)1 DataTableSpec (org.knime.core.data.DataTableSpec)1 RowKey (org.knime.core.data.RowKey)1 ColumnRearranger (org.knime.core.data.container.ColumnRearranger)1 DefaultRow (org.knime.core.data.def.DefaultRow)1 DoubleCell (org.knime.core.data.def.DoubleCell)1 CanceledExecutionException (org.knime.core.node.CanceledExecutionException)1 FlowVariable (org.knime.core.node.workflow.FlowVariable)1 UniqueNameGenerator (org.knime.core.util.UniqueNameGenerator)1