[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-dev] History as revision graph

From: Steve Elsemore <selsemore_at_collab.net>
Date: Tue, 01 Jul 2008 08:27:39 -0700


Let me know if you need any help making this runnable as a background
operation. It should be fairly simple. I would start by creating my own
operation class that extends
org.tigris.subversion.subclipse.ui.operations.SVNOperation (youıll need to
add org.eclipse.team.ui to your plugin dependencies). Then youıll just need
to override the execute(IProgressMonitor monitor) method to do the actual
work thatıs currently in your action, and and override the getTaskName()
method to return a meaningful description of the operation (³Retrieving
revision history for <resource name>², or something like that), and make
your action create and run your operation. Background jobs donıt run in the
UI thread, so when youıre ready to actually show the graph youıll need to do
something like this:

                Display.getDefault().syncExec(new Runnable() {
public void run() { showGraph(nodes, path);
} });


On 6/30/08 11:08 AM, "Mark Phippard" <markphip_at_gmail.com> wrote:

> 2) Given how long it takes to build the cache, the whole thing should
> be runnable as a background operation. Steve Elsemore should be able
> to help you with that.
Received on 2008-07-01 17:27:54 CEST

This is an archived mail posted to the Subclipse Dev mailing list.