Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Eclipse SVN annotation from another plugin
Eclipse SVN annotation from another plugin [message #1069598] Tue, 16 July 2013 08:06
Yaron Burg is currently offline Yaron BurgFriend
Messages: 9
Registered: July 2009
Junior Member
I'm writing an Eclipse plugin, which should automatically add SVN annotations (AKA "Blame") to the open file in the editor (like you would do with Team->Show Annotation).
I managed to get the active file, team repository and revisions, however I can't find a way to do the "Show Annotation" action.
Here is the relevant code (in research stages as you can see)
clickAction = new Action() {
        public void run() {
            RepositoryProvider provider = RepositoryProvider.getProvider(activeFile.getProject());
            IFileHistory hist = provider.getFileHistoryProvider().getFileHistoryFor(activeFile, IFileHistoryProvider.NONE,
                    new NullProgressMonitor());
            String a = hist.getFileRevisions()[hist.getFileRevisions().length-1].getAuthor();

"Show Annotation" feature will save me the need to get the list of changed lines and do the annotation and calculations myself in the editor.

Any idea how to do that?

Previous Topic:Eclipse plugin with C++ dlls
Next Topic:Meaning of colon (:) in a handler's class= statement (plugin.xml)
Goto Forum:

Current Time: Tue Jan 23 16:16:42 GMT 2018

Powered by FUDForum. Page generated in 0.01713 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software