use of org.knime.core.node.dialog.DialogNodeValue in project knime-core by knime.
the class SubNodeContainer method performSaveModelSettingsTo.
/**
* {@inheritDoc}
*/
@Override
@SuppressWarnings("rawtypes")
void performSaveModelSettingsTo(final NodeSettings modelSettings) {
Map<NodeID, DialogNode> nodes = m_wfm.findNodes(DialogNode.class, false);
for (Map.Entry<NodeID, DialogNode> entry : nodes.entrySet()) {
final DialogNode dialogNode = entry.getValue();
final String parameterName = getDialogNodeParameterName(dialogNode, entry.getKey());
final DialogNodeValue dialogValue = dialogNode.getDialogValue();
if (dialogValue != null) {
NodeSettingsWO subSettings = modelSettings.addNodeSettings(parameterName);
dialogValue.saveToNodeSettings(subSettings);
}
}
}
Aggregations