fireReviewChanged(review);
Class<? extends AbstractReviewFilesRevuSettingsComponent> settingsComponentClass =
review.isShared() ? RevuProjectSettingsComponent.class : RevuWorkspaceSettingsComponent.class;
AbstractReviewFilesRevuSettingsComponent settingsComponent = project.getComponent(settingsComponentClass);
AbstractReviewFilesRevuSettings state = (AbstractReviewFilesRevuSettings) settingsComponent.getState();
List<String> reviewFiles = state.getReviewFiles();
int index = reviewFiles.indexOf(RevuVfsUtils.buildRelativePath(project, oldFile));
if (index != -1)
{
reviewFiles.set(index, RevuVfsUtils.buildRelativePath(project, newFile));
settingsComponent.loadState(state);
}
}