@Override protected void commitToInput(){
  JmxBeanSensorAssignment assignment=getInput();
  if (null != assignment) {
    assignment.setDomain(domainText.getText());
    assignment.setObjectNameParameters(new HashMap<>(parametersMap));
    if (allAttributesButton.getSelection()) {
      assignment.setAttributes(Collections.<String>emptySet());
    }
 else {
      assignment.setAttributes(new HashSet<>(attributesSet));
    }
  }
}

@ Override protected void commitToInput ( ) { JmxBeanSensorAssignment assignment = getInput ( ) ; if ( null != assignment ) { assignment . setDomain ( domainText . getText ( ) ) ; assignment . setObjectNameParameters ( new HashMap < > ( parametersMap ) ) ; if ( allAttributesButton . getSelection ( ) ) { assignment . setAttributes ( Collections . < String > emptySet ( ) ) ; } else { assignment . setAttributes ( new HashSet < > ( attributesSet ) ) ; } } }
commits changes in page to input .
