[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

Alberto,

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);
} });

Steve

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.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.