Plugin Design - Investigating Local History Jemão - May 05, 2008 - 09:27 PM Post subject: Investigating Local History
Hi people,
I'm investigating how Local History function works, but unfortunately I couldn't find the plugin responsible for doing this action.
After some search I found the Beyond Compare plugin, which seems to do the same, but looks like it has a bug (search for a .exe file, which does not exists in linux) and doesn't work correctly.
I've already developed a plugin to compare different CVS revision of the same file. In this plugin my action class extends WorkspaceAction, and everything works correctly. The point is that it depends on the project being in the CVS repository. In this case, I already know that it is possible to access the local revisions (called states) of the file once I have it as an IFile object in hands. I simply don't know how to get the user selection as an IResource, and then downcast it to IFile.