Search in sources :

Example 1 with FlowVariableFilterConfiguration

use of org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration in project knime-core by knime.

the class VariableLoopEndNodeDialog method loadSettingsFrom.

/**
 * {@inheritDoc}
 */
@Override
protected void loadSettingsFrom(final NodeSettingsRO settings, final PortObjectSpec[] specs) throws NotConfigurableException {
    FlowVariableFilterConfiguration config = new FlowVariableFilterConfiguration("selection");
    Map<String, FlowVariable> variables = getAvailableFlowVariables();
    config.loadConfigurationInDialog(settings, variables);
    m_selection.loadConfiguration(config, variables);
}
Also used : FlowVariableFilterConfiguration(org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration) FlowVariable(org.knime.core.node.workflow.FlowVariable)

Example 2 with FlowVariableFilterConfiguration

use of org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration in project knime-core by knime.

the class VariableLoopEndNodeDialog method saveSettingsTo.

/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) throws InvalidSettingsException {
    FlowVariableFilterConfiguration config = new FlowVariableFilterConfiguration("selection");
    m_selection.saveConfiguration(config);
    config.saveConfiguration(settings);
}
Also used : FlowVariableFilterConfiguration(org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration)

Example 3 with FlowVariableFilterConfiguration

use of org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration in project knime-core by knime.

the class AppendVariableToTable2NodeDialogPane method saveSettingsTo.

/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) throws InvalidSettingsException {
    FlowVariableFilterConfiguration config = new FlowVariableFilterConfiguration(AppendVariableToTable2NodeModel.CFG_KEY_FILTER);
    m_filter.saveConfiguration(config);
    config.saveConfiguration(settings);
}
Also used : FlowVariableFilterConfiguration(org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration)

Example 4 with FlowVariableFilterConfiguration

use of org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration in project knime-core by knime.

the class AppendVariableToTable2NodeDialogPane method loadSettingsFrom.

/**
 * {@inheritDoc}
 */
@Override
protected void loadSettingsFrom(final NodeSettingsRO settings, final PortObjectSpec[] specs) throws NotConfigurableException {
    FlowVariableFilterConfiguration config = new FlowVariableFilterConfiguration(AppendVariableToTable2NodeModel.CFG_KEY_FILTER);
    config.loadConfigurationInDialog(settings, getAvailableFlowVariables());
    m_filter.loadConfiguration(config, getAvailableFlowVariables());
}
Also used : FlowVariableFilterConfiguration(org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration)

Example 5 with FlowVariableFilterConfiguration

use of org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration in project knime-core by knime.

the class AppendVariableToTable2NodeModel method validateSettings.

/**
 * {@inheritDoc}
 */
@Override
protected void validateSettings(final NodeSettingsRO settings) throws InvalidSettingsException {
    FlowVariableFilterConfiguration conf = new FlowVariableFilterConfiguration(CFG_KEY_FILTER);
    conf.loadConfigurationInModel(settings);
}
Also used : FlowVariableFilterConfiguration(org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration)

Aggregations

FlowVariableFilterConfiguration (org.knime.core.node.util.filter.variable.FlowVariableFilterConfiguration)14 InvalidSettingsException (org.knime.core.node.InvalidSettingsException)3 FlowVariable (org.knime.core.node.workflow.FlowVariable)2 FilterResult (org.knime.core.node.util.filter.NameFilterConfiguration.FilterResult)1