public EditorController( IArticleService articleService, IPeerReviewService peerReviewService, AdministrationService adminService) { this.articleService = articleService; this.peerReviewService = peerReviewService; this.adminService = adminService; }
/// <summary> /// Creates review comment in SnapshotSpan and sets all base properties /// </summary> /// <param name="reviewService">Peer review service for interface with snapshotSpan</param> /// <param name="snapshotSpan">SnapshotSpan contains review comment</param> /// <param name="filePath">Path of file contains review comment</param> public PeerReviewSnapshotComment(IPeerReviewService reviewService, SnapshotSpan snapshotSpan, string filePath) { SnapShotSpan = snapshotSpan; Span = reviewService.GetLineSpan(snapshotSpan); StartLine = reviewService.GetStartLineNumber(snapshotSpan); EndLine = reviewService.GetEndLineNumber(snapshotSpan); Serverity = reviewService.GetServerity(snapshotSpan); Message = reviewService.GetCommentMessage(snapshotSpan); FilePath = filePath; }
public PeerReviewCommentManager(IDexterFileService fileService, IPeerReviewService reviewService, IDexterSolutionManager solutionManager, IPeerReviewTaskProviderWrapper taskProvider, IDexterDocumentService documentService) { this.fileService = fileService; this.reviewService = reviewService; this.solutionManager = solutionManager; this.taskProvider = taskProvider; this.documentService = documentService; this.solutionManager.SourceFilesChanged += OnSourceFilesChanged; comments = new List <PeerReviewComment>(); }
/// <summary> /// Initializes variables and parses peer review comments for the text buffer /// </summary> public PeerReviewTagger(ITextBuffer textBuffer, ITextDocument document, IPeerReviewService reviewService, IDexterInfoProvider dexterInfoProvider, IPeerReviewCommentManager commentManager) { this.commentManager = commentManager; this.reviewService = reviewService; this.textBuffer = textBuffer; this.dexterInfoProvider = dexterInfoProvider; this.textBuffer.Changed += TextBufferChanged; this.textBuffer.Properties.AddProperty(PeerReviewConstants.COMMENT_OWNER, this); textDocument = document; textDocument.FileActionOccurred += FileActionOccurred; isCommentDirty = false; ParsePReviewComments(); }
public ReviewerController(IArticleService articleService, IPeerReviewService peerReviewService) { this.articleService = articleService; this.peerReviewService = peerReviewService; }