void () { if (myGroup.isBound() != myBindToFieldCheckBox.isSelected()) { myGroup.setBound(myBindToFieldCheckBox.isSelected()); notifyListeners(new ChangeEvent(myGroup)); if (myGroup.isBound()) { BindingProperty.updateBoundFieldName(myRootContainer, null, myGroup.getName(), ButtonGroup.class.getName()); } else { BindingProperty.checkRemoveUnusedField(myRootContainer, myGroup.getName(), FormEditingUtil.getNextSaveUndoGroupId(myRootContainer.getProject())); } } }