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

Re: [Subclipse-users] Re: adding a notify listener

From: Dominik Rost <d-n-r_at_gmx.net>
Date: 2007-04-24 19:54:05 CEST

Mark,

thanks for replying and trying to find a solution.

It seems as if I got it working by writing a wrapper for the
ConsoleListener and setting it with
SVNProviderPlugin.getPlugin().setConsoleListener(IConsoleListener). I
read this before in another thread which had almost the same topic. It
isn't a nice solution (rather an ugly workaround), but the only one I
can see to get client side notifications for svn commands.

Wouldn't it be worth to consider applying some kind of singleton pattern
to the svnClientAdapter or holding a static list of NotifyListerners or
something like that for a future version of subclipse? Since I know only
small parts of the subclipse code I don't know whether that's realistic
or not. But since I'm not the only one having that problem I think it
might be a good idea. Just for a suggestion.

Thanks again,
Dominik

> Sorry for not replying. I probably did the same thing as you in that
> I spent some time looking at the code and did not see a solution. I
> do not think there is one with the current code.
>
> Mark
>
>
> On 4/24/07, Dominik.Rost@iese.fraunhofer.de
> <Dominik.Rost@iese.fraunhofer.de> wrote:
>> Anyone?
>>
>> I'm a bit stuck here. Exploring the subclipse code brought the solution
>> neither.
>>
>> I'd really appreciate a small hint for finding a solution to that
>> problem.
>>
>> Dominik
>>
>> > Hello Everyone,
>> >
>> > I have some trouble using the notification mechanism of the
>> > svnClientAdapter.
>> >
>> > In my plug-in I need to get a notification when the user does a commit
>> > or update with subclipse. I read that there is a notification
>> mechanism,
>> > so I wrote a class that implements ISVNNotifyListener and tried to add
>> > it to the listeners via ISVNClientAdapter.addNotifyListener. The
>> proplem
>> > is that I don't receive a notification.
>> >
>> > To get a clientAdapter I did a ISVNRepositoryLocation.getSVNClient().
>> (I
>> > only have one configured so it is the right one)
>> >
>> > My guess is that I don't have the right ISVNClientAdapter to which I
>> > added my Listener (or that I misunderstood some basic concept ?!?)
>> >
>> > I hope someone can give me a hint.
>> >
>> > Thanks,
>> > Dominik
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
>> For additional commands, e-mail: users-help@subclipse.tigris.org
>>
>>
>
>
> --
> Thanks
>
> Mark Phippard
> http://markphip.blogspot.com/

OpenPGP-Key-ID: 0x2E8BF8A6
OpenPGP-Fingerprint: E8DE 2E96 6479 50AB 4B8F FFFF 6518 3678 2E8B F8A6
Public Key available at:
http://pgpkeys.pca.dfn.de/pks/lookup?search=0x2E8BF8A6&op=get

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Tue Apr 24 21:41:35 2007

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