Source:
public void setInput(Object input) { if (input instanceof CommentAnnotationHoverInput) { this.annotationInput = (CommentAnnotationHoverInput) input; for (Control control : composite.getChildren()) { control.dispose(); } currentPopupDialog = this; commentList = new ArrayList<IComment>(); for (CommentAnnotation annotation : annotationInput.getAnnotations()) { if (reviewitem == null) { if (annotation.getComment().getItem() instanceof IReviewItem) { reviewitem = (IReviewItem) annotation.getComment().getItem(); } } if (range == null) { List<ILocation> locations = annotation.getComment().getLocations(); if (!locations.isEmpty()) { ILocation location = locations.get(0); if (location instanceof ILineLocation) { range = new LineRange(((ILineLocation) location).getRangeMin(), 1); } } } if ((reviewitem != null) && reviewitem.getReview() != null && reviewitem.getReview().getRepository() != null && reviewitem.getReview().getRepository().getAccount() != null && reviewitem.getReview().getRepository().getAccount() != annotation.getComment().getAuthor() && annotation.getComment().isDraft()) { continue; } CommentPart part = new CommentPart(annotation.getComment(), annotationInput.getBehavior()); commentList.add(annotation.getComment()); part.hookCustomActionRunListener(this); Control control = part.createControl(composite, toolkit); toolkit.adapt(control, true, true); } composite.setBackground(toolkit.getColors().getBackground()); scrolledComposite.layout(true, true); scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT)); if (canAddCommentEditor()) { scrolledComposite.addMouseListener(createRemoveCommentEditorListener()); List<Section> sections = getScrolledCompositeSections(); for (Section s : sections) { recursivelyAddCommentEditorListener(s); } if (!commentList.isEmpty()) { helpText = new Text(composite, SWT.NONE); helpText.setText(Messages.CommentPopupDialog_HelpText); } } else { this.editable = false; } if (isCommentNavigator) { addToEditTable(); } } else { input = null; } }

Target:
public void setInput(Object input) { if (input instanceof CommentAnnotationHoverInput) { this.annotationInput = (CommentAnnotationHoverInput) input; for (Control control : composite.getChildren()) { control.dispose(); } currentPopupDialog = this; commentList = new ArrayList<IComment>(); for (CommentAnnotation annotation : annotationInput.getAnnotations()) { if (reviewitem == null) { if (annotation.getComment().getItem() instanceof IReviewItem) { reviewitem = (IReviewItem) annotation.getComment().getItem(); } } if (range == null) { List<ILocation> locations = annotation.getComment().getLocations(); if (!locations.isEmpty()) { ILocation location = locations.get(0); if (location instanceof ILineLocation) { range = new LineRange(((ILineLocation) location).getRangeMin(), 1); } } } if ((reviewitem != null) && reviewitem.getReview() != null && reviewitem.getReview().getRepository() != null && reviewitem.getReview().getRepository().getAccount() != null && reviewitem.getReview().getRepository().getAccount() != annotation.getComment().getAuthor() && annotation.getComment().isDraft()) { continue; } CommentPart part = new CommentPart(annotation.getComment(), annotationInput.getBehavior()); commentList.add(annotation.getComment()); part.hookCustomActionRunListener(this); Control control = part.createControl(composite, toolkit); toolkit.adapt(control, true, true); } composite.setBackground(toolkit.getColors().getBackground()); scrolledComposite.layout(true, true); scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT)); if (canAddCommentEditor()) { scrolledComposite.addMouseListener(createRemoveCommentEditorListener()); List<Section> sections = getScrolledCompositeSections(); for (Section s : sections) { recursivelyAddCommentEditorListener(s); } if (!commentList.isEmpty()) { helpText = new Text(composite, SWT.NONE); helpText.setText(Messages.CommentPopupDialog_HelpText); } } else { this.editable = false; } if (isCommentNavigator) { addToEditTable(""); } } }