Skip to main content

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

Could you explain a bit more why you believe the resource delta
mechanism is relevant to "move"?  Semantically, a move
is orthogonal to delta information (i.e. a move registers
a resource at a new location, and therefore is a namespace
operation, which does not affect the resource content).

A possibly related question: Does the current local history
mechanism support move/rename (i.e. after the move, is the
local history of the file available at the destination of the move)?

Cheers,
Geoff

-----Original Message-----
From: Michael Valenta [mailto:Michael_Valenta@xxxxxxx]
Sent: Tuesday, June 18, 2002 11:13 AM
To: platform-vcm-dev@xxxxxxxxxxx
Subject: 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




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


Back to the top