ReviewModel reviewModel = ReviewModel.getInstance();
IProject project = reviewModel.getProjectManager().getProject();
ReviewId reviewId = reviewModel.getReviewIdManager().getReviewId();
TypeKeyManager typeKeyManager = TypeKeyManager.getInstance(project, reviewId);
SeverityKeyManager severityKeyManager = SeverityKeyManager.getInstance(project, reviewId);
ResolutionKeyManager resolutionKeyManager = ResolutionKeyManager.getInstance(project,
reviewId);
StatusKeyManager statusKeyManager = StatusKeyManager.getInstance(project, reviewId);
String resolutionKey = resolutionKeyManager.getKey(resolutionCombo.getText());
String severityKey = severityKeyManager.getKey(severityCombo.getText());
return new ReviewIssue(this.reviewIssue.getCreationDate(), new Date(),
this.reviewIssue.getReviewer(), this.assignedToCombo.getText(),
this.reviewIssue.getTargetFile(), this.reviewIssue.getLine(),
(Type) typeKeyManager.getItemObject(typeKeyManager.getKey(typeCombo.getText())),
(Severity) severityKeyManager.getItemObject(severityKey),
this.summaryText.getText(),
this.descriptionText.getText(), this.annotationText.getText(),
this.revisionText.getText(),
(Resolution) resolutionKeyManager.getItemObject(resolutionKey),
(Status) statusKeyManager.getItemObject(statusKeyManager.getKey(statusCombo.getText())),
this.reviewIssue.getReviewIFile());
}
catch (ReviewException e) {
e.printStackTrace();