Skip to content

Commit

Permalink
combobox only visible if multiple methods available
Browse files Browse the repository at this point in the history
issue #57 : #57
  • Loading branch information
miho committed Aug 2, 2015
1 parent 32bcaa7 commit 64a3277
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ protected Node createView() {
// }
// }
Invocation invocation = (Invocation) value;

box.setVisible(!invocation.getArguments().isEmpty());

VBox inputs = new VBox();
VBox outputs = new VBox();
Expand All @@ -90,6 +92,7 @@ protected Node createView() {

invocation.getArguments().addListener(
(ListChangeListener.Change<? extends IArgument> c) -> {
box.setVisible(!invocation.getArguments().isEmpty());
if (!updating) {
createArgView(invocation, inputs,
invocation.getArguments().size()
Expand Down

0 comments on commit 64a3277

Please sign in to comment.