private void populateValuesOfSwModule ( ) { if ( baseSwModuleId == null ) { return ; } editSwModule = Boolean . TRUE ; softwareModuleManagement . get ( baseSwModuleId ) . ifPresent ( swModule -> { nameTextField . setValue ( swModule . getName ( ) ) ; versionTextField . setValue ( swModule . getVersion ( ) ) ; vendorTextField . setValue ( swModule . getVendor ( ) ) ; descTextArea . setValue ( swModule . getDescription ( ) ) ; softwareModuleType = new LabelBuilder ( ) . name ( swModule . getType ( ) . getName ( ) ) . caption ( i18n . getMessage ( UIMessageIdProvider . CAPTION_ARTIFACT_SOFTWARE_MODULE_TYPE ) ) . buildLabel ( ) ; } ) ; }
fill the data of a softwareModule in the content of the window