Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-team-dev] Capturing Copy event



platform-team-dev-bounces@xxxxxxxxxxx wrote on 09/09/2005 11:02:35 AM:

> We have an apparent problem in the Subclipse plugin.  We need to be able
> to capture when a user does a copy, especially of a folder.  This could be
> via cut & paste or drag and drop.  I had assumed we were handling this
> since we do capture and handle the move/rename event.
>
> Looking at the Team API I cannot see how we can capture a copy event.
> Surely it is possible.


No, it is currently not possible to detect and/or hook a copy. I though there was a bug for this but I couldn't find one. You may want to log a bug report against Platform Resources for this.

> The only this I saw was that IResourceRuleFactory has a copyRule() method,
> but it doesn't seem like that would be the place for us to step in and
> implement the copy.


You are right. Chances are that a copy is about to take place after that method is called but there is no way to hook it. I think you would need explicit support for this in order for you to do anything useful.

> Any ideas?  Taking a folder that is in a Subversion working copy and just
> copying it using a filesystem copy is not a good thing to do.

For CVS what we do is look for additions in the delta and remove the CVS folders if the added folder is not managed by the parent. This works in most cases. However, have a copy hook would simplify things.

Michael
 
> Thanks
>
> Mark
>
>
> _____________________________________________________________________________
> Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by
> IBM Email Security Management Services powered by MessageLabs.
> _____________________________________________________________________________
> _______________________________________________
> platform-team-dev mailing list
> platform-team-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/platform-team-dev

Back to the top