* Performs finish processing for the wizard.
* @see org.eclipse.jface.wizard.Wizard#performFinish()
*/
public boolean performFinish() {
Map<String, List<String>> categoryMap = new TreeMap<String, List<String>>();
PropertyResource propertyResource = PropertyResource.getInstance(project, true);
String defaultReviewID = PropertyConstraints.DEFAULT_REVIEW_ID;
ReviewResource reviewResource = propertyResource.getReviewResource(defaultReviewID, true);
if (reviewResource != null) {
Map<String, ReviewerId> reviewers = reviewerPage.getReviewers();
String reviewIdString = reviewIdPage.getReviewId();
String description = reviewIdPage.getDescription();
String author = authorPage.getAuthor();
String directory = storagePage.getDirectory();
try {
Date date = new Date();
ReviewId reviewId = new ReviewId(reviewIdString, description, author,
directory, reviewers, categoryMap, date);
reviewResource.setReviewId(reviewId);
reviewResource.setTargetFiles(filePage.getFiles());
String typeKey = PropertyConstraints.ATTRIBUTE_VALUE_TYPE;
reviewResource.setDefaultField(typeKey, defaultItemsPage.getDefaultTypeKey());
String severityKey = PropertyConstraints.ATTRIBUTE_VALUE_SEVERITY;
reviewResource.setDefaultField(severityKey, defaultItemsPage.getDefaultSeverityKey());
String resolutionKey = PropertyConstraints.ATTRIBUTE_VALUE_RESOLUTION;
reviewResource.setDefaultField(resolutionKey, defaultItemsPage.getDefaultResolutionKey());
String statusKey = PropertyConstraints.ATTRIBUTE_VALUE_STATUS;
reviewResource.setDefaultField(statusKey, defaultItemsPage.getDefaultStatusKey());
reviewResource.setFieldItemMap(this.itemEntriesPage.getFieldItemIdFieldItemMap());
reviewResource.setPhaseNameFilterPhaseMap(this.filterPage.getPhaseNameFilterPhaseMap());
return propertyResource.addReviewResource(reviewResource);
}
catch (Exception e) {
log.error(e);
e.printStackTrace();
MessageDialog.openInformation(workbench.getActiveWorkbenchWindow().getShell(),