Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 103969

Summary: Provide 'Link with editor' button for 'CVS Annotate' view
Product: [Eclipse Project] Platform Reporter: Marcel Schutte <mschutte1>
Component: CVSAssignee: platform-cvs-inbox <platform-cvs-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P5 Keywords: helpwanted
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Marcel Schutte CLA 2005-07-15 03:50:15 EDT
Currently the 'cvs annotate' view can only be populated by selecting a file and
choosing 'team->show annotation'. Could you give it a 'Link with editor' button
similar to the 'CVS Resource History' view. This would be very helpful when
browsing projects.
Comment 1 Michael Valenta CLA 2005-07-19 11:23:47 EDT
This would be a good feature but it is not trivial to implement. The problem 
is that Annotate currently only works for editors that are opened by the 
Annotate Actions. To generalize it, we would need to make it works for any 
editor. This wouldn't be too difficult except fr the case where the file the 
editor is showing has been changed locally. I'm not sure what we could do in 
that case.

Comment 2 Scott CLA 2006-05-05 12:47:23 EDT
Does anyone else think it would be a good idea to be able to just display the annotations down the left side of the editor, like the line numbers, without leaving the perspective? 

IntelliJ's Idea does this very nicely and allows it to be easily turned on and off. The result is an edit screen that looks much like the command line output of cvs annotate with the annotations being uneditable and the text of the file being editable.

To answer the case of locally modified files, why not just add a line for locally modified and link to that for the modified lines? If my suggestion is taken with respect to not switching perspectives to view annotations, lines that are modified would have an indicator that they are locally modified or possibly would show no annotation at all.
Comment 3 Bogdan Gheorghe CLA 2006-05-05 13:49:26 EDT
We have put this is in for the 3.2 release under the guise of Live Annotate. To use it, just select Team>Show Annotation from the Package explorer or  an editor. (You will be asked if you want to use Live Annotate, say yes). 

The annotations are shown down the side and clicking on them (or clicking on a line in the editor) will reveal the revision in the history view. Note that this annotate can only be performed on files within your workspace, remote files (i.e. ones in the repositories view) can only be annotated via the old mechanism.