class CommentItemPresenter {

    public void delete() {
        if (isUserAuthor()) {
            final WorkspaceProject workspaceProject = this.libraryPlaces.getActiveWorkspace();
            changeRequestService.call()
                    .deleteComment(workspaceProject.getSpace().getName(),
                                   workspaceProject.getRepository().getAlias(),
                                   this.changeRequestId,
                                   this.commentId);
        }
    }

    @Inject public  CommentItemPresenter(final View view,
                                final DateUtils dateUtils,
                                final Caller<ChangeRequestService> changeRequestService,
                                final SessionInfo sessionInfo,
                                final LibraryPlaces libraryPlaces);

}