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

Re: [Subclipse-dev] Listener API for SVN actions / Logical Model Integration API

From: Mark Phippard <markphip_at_gmail.com>
Date: 2007-07-16 14:32:10 CEST

On 7/16/07, H. Meyer <subversivesvn-9999-exp@sblk.de> wrote:

> I was wondering whether Subclipse offers any API which would allow other
> plugins to register listeners for SVN actions. I.e. to get a callback
> before/after update/commit/checkout/checkin or to participate in file
> merges.

Yes and No. Subclipse uses a listener architecture that theoretically
supports this but which is currently fairly impossible for a 3rd party
plugin to use. The current trunk code, which will be used for our
next major release has changed this somewhat so that it would be
easier to use.

> It also seems as if Subclipse does not support the Eclipse Team API for
> Logical Model Integration

Correct, we do not.

> Is support for this API planned?

No, support is not planned.

> Is there maybe any Subclipse specific
> API which can be used to achieve the same end?

Sure. The Subclipse core plugin can be driven fairly easily by
another plugin. The Buckminster plugin, as an example, uses it to
provide SVN support. In our next release our plugin architecture will
be further changed so that one could also easily just use our
svnClientAdapter API if they just need SVN API access.

> I am asking because a plugin on which I am currently working requires a
> certain degree of control over team actions. It creates a special data
> file for each Java source file. Those special data files must always be
> checked-out/checked-in with the corresponding Java source files as they
> contain valuable additional information pertaining to the source files.
> They also require special handling during merges (the Java source files
> can be merged as always, but the special data files need to use special
> merging code).

I think it will be fairly hard to integrate something like this with
Subversion. Depending on the quantity of the data in these files, you
might consider using Subversion properties to store this data. A
downside, is that merge support for properties is very poor in both
Subversion itself and most clients like Subclipse.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: dev-help@subclipse.tigris.org
Received on Mon Jul 16 14:31:20 2007

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.