this.reviewId.setDescription(ReviewI18n.getKey(this.reviewIdDescriptionText.getText()));
this.reviewId.setReviewers(this.reviewers);
this.reviewId.setAuthor(this.authorCombo.getText());
this.reviewId.setDirectory(this.storageText.getText());
try {
PropertyResource propertyResource = PropertyResource.getInstance(this.project, true);
String reviewIdString = this.reviewId.getReviewId();
ReviewResource reviewResource = propertyResource.getReviewResource(reviewIdString, true);
if (reviewResource != null) {
reviewResource.setReviewId(this.reviewId);
reviewResource.setTargetFiles(this.files);
String typeKey = ReviewI18n.getKey(this.defaultTypeCombo.getText());
reviewResource.setDefaultField(PropertyConstraints.ATTRIBUTE_VALUE_TYPE, typeKey);
String severityKey = ReviewI18n.getKey(this.defaultSeverityCombo.getText());
reviewResource.setDefaultField(PropertyConstraints.ATTRIBUTE_VALUE_SEVERITY,
severityKey);
String resolutionKey = ReviewI18n.getKey(this.defaultResolutionCombo.getText());
String resolutionName = PropertyConstraints.ATTRIBUTE_VALUE_RESOLUTION;
reviewResource.setDefaultField(resolutionName, resolutionKey);
String statusKey = ReviewI18n.getKey(this.defaultStatusCombo.getText());
reviewResource.setDefaultField(PropertyConstraints.ATTRIBUTE_VALUE_STATUS, statusKey);
reviewResource.setFieldItemMap(this.fieldItemIdFieldItemMap);
reviewResource.setPhaseNameFilterPhaseMap(this.phaseNameFilterPhaseMap);
propertyResource.removeReviewResource(this.reviewId);
propertyResource.addReviewResource(reviewResource);
}
}
catch (ReviewException e) {
log.error(e);
}