Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-vcm-dev] Team + Refactoring

David,

Depending on how the refactoring tool performs the rename, at least one of
the methods in the IMoveDeleteHook should get invoked. Did you put a
breakpoint in all of them? If you perform a file deletion, does the proper
delete method get invoked?

As an aside, the purpose of the move/delete hook is to support the veto of
an operation. If you are interested in allowing the operation but want to
react to it in some way, the core resource delta mechanism may be more
appropriate. The resource deltas will contain information that
differentiates additions and deletions from moves and will contain the
source path for moves.

Hope this helps
Michael



                                                                                                                                       
                      David Corbin                                                                                                     
                      <dcorbin@xxxxxxxx>              To:      platform-vcm-dev@xxxxxxxxxxx                                            
                      Sent by:                        cc:                                                                              
                      platform-vcm-dev-admin@         Subject: [platform-vcm-dev] Team + Refactoring                                   
                      eclipse.org                                                                                                      
                                                                                                                                       
                                                                                                                                       
                      17/06/2002 07:50 PM                                                                                              
                      Please respond to                                                                                                
                      platform-vcm-dev                                                                                                 
                                                                                                                                       
                                                                                                                                       



I'm trying to extend our Team Provider implementation so that I can
correctly use the Refactorings that involve renaming and moving
resources.  Unlike CVS, (to my knowledge), I need to issue a
source-control call to rename/move a file in the repository. Looking at
the source code, it looks like the solution should be:

    Implement IMoveDeleteHook, and RepositoryProvider.getMoveDeleteHook()

However, when I do a resource rename, my breakpoints in this area don't
get hit.

Do I have this correct?  If so, is there something else I should to to
get my code to be called?  If not, what is the correct solution?

Thanks.
David Corbin


_______________________________________________
platform-vcm-dev mailing list
platform-vcm-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-vcm-dev






Back to the top