private void addNewDistribution(){
  editDistribution=Boolean.FALSE;
  final String name=HawkbitCommonUtil.trimAndNullIfEmpty(distNameTextField.getValue());
  final String version=HawkbitCommonUtil.trimAndNullIfEmpty(distVersionTextField.getValue());
  final String distSetTypeName=HawkbitCommonUtil.trimAndNullIfEmpty((String)distsetTypeNameComboBox.getValue());
  final String desc=HawkbitCommonUtil.trimAndNullIfEmpty(descTextArea.getValue());
  final boolean isMigStepReq=reqMigStepCheckbox.getValue();
  DistributionSet newDist=entityFactory.generateDistributionSet();
  setDistributionValues(newDist,name,version,distSetTypeName,desc,isMigStepReq);
  newDist=distributionSetManagement.createDistributionSet(newDist);
  notificationMessage.displaySuccess(i18n.get("message.new.dist.save.success",new Object[]{newDist.getName(),newDist.getVersion()}));
  final Set<DistributionSetIdName> s=new HashSet<>();
  s.add(new DistributionSetIdName(newDist.getId(),newDist.getName(),newDist.getVersion()));
  final DistributionSetTable distributionSetTable=SpringContextHelper.getBean(DistributionSetTable.class);
  distributionSetTable.setValue(s);
}

private void addNewDistribution ( ) { editDistribution = Boolean . FALSE ; final String name = HawkbitCommonUtil . trimAndNullIfEmpty ( distNameTextField . getValue ( ) ) ; final String version = HawkbitCommonUtil . trimAndNullIfEmpty ( distVersionTextField . getValue ( ) ) ; final String distSetTypeName = HawkbitCommonUtil . trimAndNullIfEmpty ( ( String ) distsetTypeNameComboBox . getValue ( ) ) ; final String desc = HawkbitCommonUtil . trimAndNullIfEmpty ( descTextArea . getValue ( ) ) ; final boolean isMigStepReq = reqMigStepCheckbox . getValue ( ) ; DistributionSet newDist = entityFactory . generateDistributionSet ( ) ; setDistributionValues ( newDist , name , version , distSetTypeName , desc , isMigStepReq ) ; newDist = distributionSetManagement . createDistributionSet ( newDist ) ; notificationMessage . displaySuccess ( i18n . get ( "message.new.dist.save.success" , new Object [ ] { newDist . getName ( ) , newDist . getVersion ( ) } ) ) ; final Set < DistributionSetIdName > s = new HashSet < > ( ) ; s . add ( new DistributionSetIdName ( newDist . getId ( ) , newDist . getName ( ) , newDist . getVersion ( ) ) ) ; final DistributionSetTable distributionSetTable = SpringContextHelper . getBean ( DistributionSetTable . class ) ; distributionSetTable . setValue ( s ) ; }
add new distribution set .
