From 64a32772169b3039b78cde9de9d0ed106900e3e1 Mon Sep 17 00:00:00 2001 From: Michael Hoffer Date: Sun, 2 Aug 2015 14:13:48 +0200 Subject: [PATCH] combobox only visible if multiple methods available issue #57 : https://github.com/VRL-Studio/VRL/issues/57 --- .../vrl/ui/codevisualization/VariableFlowNodeSkin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/VRL/VRL-UI/src/main/java/eu/mihosoft/vrl/ui/codevisualization/VariableFlowNodeSkin.java b/VRL/VRL-UI/src/main/java/eu/mihosoft/vrl/ui/codevisualization/VariableFlowNodeSkin.java index 2db32811..a66f4dfc 100644 --- a/VRL/VRL-UI/src/main/java/eu/mihosoft/vrl/ui/codevisualization/VariableFlowNodeSkin.java +++ b/VRL/VRL-UI/src/main/java/eu/mihosoft/vrl/ui/codevisualization/VariableFlowNodeSkin.java @@ -80,6 +80,8 @@ protected Node createView() { // } // } Invocation invocation = (Invocation) value; + + box.setVisible(!invocation.getArguments().isEmpty()); VBox inputs = new VBox(); VBox outputs = new VBox(); @@ -90,6 +92,7 @@ protected Node createView() { invocation.getArguments().addListener( (ListChangeListener.Change c) -> { + box.setVisible(!invocation.getArguments().isEmpty()); if (!updating) { createArgView(invocation, inputs, invocation.getArguments().size()