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

[Subclipse-dev] commit listener

From: Adam Piechowiak <ispider_at_poczta.onet.pl>
Date: 2006-03-14 22:34:05 CET

Hello,

I've been writing an eclipse plugin and I want to perform some custom
actions when the subclipse user commit files to the repository.
Currently I'm wrapping the IConsoleListener to catch the commit event:

-------------------------------- cut --------------------------------
cut --------------------------------
public void start(BundleContext context) throws Exception {
    ..
    SVNResourceChanged notificationListener = new
SVNResourceChanged(SVNProviderPlugin.getPlugin().getConsoleListener());
    SVNProviderPlugin.getPlugin().setConsoleListener(notificationListener);
    ..
}

public class SVNResourceChanged implements IConsoleListener {
..
}
-------------------------------- cut --------------------------------
cut --------------------------------

but this solution does not work properly, the
SVNProviderPlugin.getPlugin().getConsoleListener() is sometimes a null
value, and during a code review I've noticed that it's initialized in
SVNUIPlugin.enableConsoleListener() method.

So here's my question: how can I receive information about svn commands
execution (especially 'commit') ?

Thanks for reply,

-- 
Adam Piechowiak
http://www.e-informatyka.pl/?locale=en_EN
adam.piechowiak@e-informatyka.pl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: dev-help@subclipse.tigris.org
Received on Tue Mar 14 22:34:29 2006

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