Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-vcm-dev] Team + Refactoring.... It's Back

I had the same problem doing exactly what you did - fortunately I was able 
to force clearcase to preserver file modification time on checkout, 
thereby sidestepping the issue =)  Maybe your provider can do a similar 
thing?  If not, you could add code around your checkout that does it for 
you.

Matt





"Zulli, Joseph" <Joseph.Zulli@xxxxxx>
Sent by: platform-vcm-dev-admin@xxxxxxxxxxx
08/22/02 02:28 PM
Please respond to platform-vcm-dev

 
        To:     <platform-vcm-dev@xxxxxxxxxxx>
        cc: 
        Subject:        [platform-vcm-dev] Team + Refactoring.... It's Back



Hi everyone, 
I am implementing a pessimistic model Team provider and I can't seem to 
get Java refactoring to work for the life of me. I know that there was a 
super long thread on refactoring but I'm still lost and I was hoping that 
someone could help.
I implemented rename by implementing the IMoveDeleteHook interface. It 
works perfectly if you click on "Rename" from the navigator view. The 
problem occurs in the Java refactor operation. 
When I try to perform a Java refactor on a file it only works if the file 
is checked out first. If the file has not been checked  out first, it will 
get checked out automatically because I implemented 
IFileModificationValidator to check out files automatically when a user 
attempts to edit a file. Once the file is checked out, however, the 
refactor process fails and says that it cannot proceed because the file 
has been "modified since the beginning of this operation." 
Has anyone seen this before? This is a major problem, we can't let the 
user rename or modify a file in any way without it being checked out 
first. Do you know of any way to address this? Am I wrong  in putting my 
check out code in the IFileModificationValidator class? I don't know of 
any better way to do it. There was mention in the newsgroup that maybe 
instead of putting the check out action in the IFileModificationVaildator 
class it should be put in a resource delta mechanism of some sort. I don't 
know how this would help though. 
Thanks in advance, 
Joe 





Back to the top