File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
app/logbook/olog/ui/src/main/java/org/phoebus/logbook/olog/ui/write Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -396,15 +396,11 @@ public void initialize() {
396396 logbooksLabel .setTextFill (Color .BLACK );
397397 });
398398
399- logbooksSelection .textProperty ().bind (Bindings .createStringBinding (() -> {
400- if (selectedLogbooks .isEmpty ()) {
401- return "" ;
402- }
403- StringBuilder stringBuilder = new StringBuilder ();
404- selectedLogbooks .forEach (l -> stringBuilder .append (l ).append (", " ));
405- String text = stringBuilder .toString ();
406- return text .substring (0 , text .length () - 2 );
407- }, selectedLogbooks ));
399+ logbooksSelection .textProperty ().bind (Bindings .createStringBinding (() ->
400+ selectedLogbooks .stream ().collect (Collectors .joining ("," )), selectedLogbooks ));
401+
402+ tagsSelection .textProperty ().bind (Bindings .createStringBinding (() ->
403+ selectedTags .stream ().collect (Collectors .joining ("," )), selectedTags ));
408404
409405 logbooksDropdownButton .focusedProperty ().addListener ((changeListener , oldVal , newVal ) ->
410406 {
You can’t perform that action at this time.
0 commit comments