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

Re: [Subclipse-dev] listening to the changes in project sharing

From: Mark Phippard <markphip_at_gmail.com>
Date: Tue, 29 Apr 2008 11:39:06 -0400

On Tue, Apr 29, 2008 at 11:29 AM, Eugene Kuleshov <eu_at_md.pp.ru> wrote:
> Mark Phippard wrote:
>
> >
> > > I wonder if it is possible to register a listener or callback to be
> > > notified when project is get shared with in svn and when it is switched
> to
> > > another tag or branch?
> > >
> > >
> > Are you asking if it can be done currently or proposing new API?
> >
> >
> I was hoping that I could use existing API.
>
>
> > Sharing projects ... all I can think of is if there an Eclipse
> > provided listener you could use. I do not know the answer to that,
> > but I would almost suspect that there might be one.
> >
> >
> Good idea. I'll ask on the platform news group
>
>
> > Switch, with the current trunk code you can add your own listeners
> > like the one we have for the Console. We use this in our CollabNet
> > merge client. In that case, we add it and remove it, but you could
> > just add it and leave it. You would then have to look for the Switch
> > command event to come through and try to figure out what you need.
> >
> >
> Thanks Mark. Can you please point me to the API to register such listener?

ISVNClientAdapter.addNotifyListener(myListener);

and optionally:

ISVNClientAdapter.removeNotifyListener(myListener);

myListener would need to implement ISVNNotifyListener

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subclipse.tigris.org
For additional commands, e-mail: dev-help_at_subclipse.tigris.org
Received on 2008-04-29 17:39:13 CEST

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