{
public void run()
{
initEmbeddedReviews();
RevuWorkspaceSettings workspaceSettings = RevuUtils.getWorkspaceSettings(project);
List<String> workspaceReviewPaths = workspaceSettings.getReviewFiles();
List<String> projectReviewPaths = RevuUtils.getProjectSettings(project).getReviewFiles();
List<String> allPaths = new ArrayList<String>(projectReviewPaths);
allPaths.addAll(workspaceReviewPaths);
loadAndAdd(allPaths, null);
// Check that reviewingReviewName matches an existing review
String reviewingReviewName = workspaceSettings.getReviewingReviewName();
if (reviewingReviewName != null)
{
Review review = getReviewByName(reviewingReviewName);
if ((review == null) || (!ReviewStatus.REVIEWING.equals(review.getStatus())))
{
workspaceSettings.setReviewingReviewName(null);
project.getComponent(RevuWorkspaceSettingsComponent.class).loadState(workspaceSettings);
}
}
}