Skip to main content


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
Hi,
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();
            System.out.print(a);
        }
    };

"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?

Thanks,
Yaron
Previous Topic:Unable to run an eclipse plugin from 2 jar files
Next Topic:Meaning of colon (:) in a handler's class= statement (plugin.xml)
Goto Forum:
  


Current Time: Fri Sep 20 14:41:29 GMT 2024

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

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

Back to the top