|
52 | 52 | import java.util.List; |
53 | 53 | import java.util.Optional; |
54 | 54 | import java.util.Set; |
| 55 | +import java.util.function.Supplier; |
55 | 56 |
|
56 | 57 | import org.knime.core.node.workflow.NodeContext; |
57 | 58 | import org.knime.core.webui.data.RpcDataService; |
58 | 59 | import org.knime.core.webui.node.dialog.NodeDialog; |
59 | 60 | import org.knime.core.webui.node.dialog.NodeSettingsService; |
60 | 61 | import org.knime.core.webui.node.dialog.SettingsType; |
61 | 62 | import org.knime.core.webui.node.dialog.scripting.GenericInitialDataBuilder; |
62 | | -import org.knime.core.webui.node.dialog.scripting.GenericInitialDataBuilder.DataSupplier; |
63 | 63 | import org.knime.core.webui.node.dialog.scripting.ScriptingNodeSettingsService; |
64 | 64 | import org.knime.core.webui.node.dialog.scripting.WorkflowControl; |
65 | 65 | import org.knime.core.webui.page.Page; |
@@ -114,20 +114,20 @@ public Optional<RpcDataService> createRpcDataService() { |
114 | 114 | public NodeSettingsService getNodeSettingsService() { |
115 | 115 | var workflowControl = new WorkflowControl(NodeContext.getContext().getNodeContainer()); |
116 | 116 |
|
117 | | - DataSupplier inputObjectSupplier = |
| 117 | + Supplier<Object> inputObjectSupplier = |
118 | 118 | () -> PythonScriptingInputOutputModelUtils.getInputObjects(workflowControl.getInputInfo()); |
119 | 119 |
|
120 | | - DataSupplier flowVariableSupplier = () -> { |
| 120 | + Supplier<Object> flowVariableSupplier = () -> { |
121 | 121 | var flowVariables = Optional.ofNullable(workflowControl.getFlowObjectStack()) // |
122 | 122 | .map(stack -> stack.getAllAvailableFlowVariables().values()) // |
123 | 123 | .orElseGet(List::of); |
124 | 124 | return PythonScriptingInputOutputModelUtils.getFlowVariableInputs(flowVariables); |
125 | 125 | }; |
126 | 126 |
|
127 | | - DataSupplier outputObjectSupplier = () -> PythonScriptingInputOutputModelUtils |
| 127 | + Supplier<Object> outputObjectSupplier = () -> PythonScriptingInputOutputModelUtils |
128 | 128 | .getOutputObjects(workflowControl.getOutputPortTypes(), m_hasView); |
129 | 129 |
|
130 | | - DataSupplier executableOptionsListSupplier = () -> { |
| 130 | + Supplier<Object> executableOptionsListSupplier = () -> { |
131 | 131 | var executableOptions = ExecutableSelectionUtils.getExecutableOptions(workflowControl.getFlowObjectStack()); |
132 | 132 |
|
133 | 133 | return executableOptions.values().stream() // |
|
0 commit comments