- else if (eventSource==datePreservation) {
- PreservationMethod preservationMethod = getEntity().getPreservationMethod();
- if(preservationMethod==null){
- preservationMethod = PreservationMethod.NewInstance();
- getEntity().setPreservationMethod(preservationMethod);
- }
- preservationMethod.setTimeperiod(datePreservation.getTimePeriod());
- }
- }catch (MethodNotSupportedByDerivedUnitTypeException e) {
- AbstractUtility.errorDialog("Parameter not available", this, "Could not set preservation parameter!", e);
- }
- if(eventSource==selectionCollection){
- getEntity().setCollection(selectionCollection.getSelection());
- }
- else if(eventSource==textAccessionNumber){
- getEntity().setAccessionNumber(textAccessionNumber.getText());
- }
- else if(eventSource==textBarcode){
- getEntity().setBarcode(textBarcode.getText());