[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[platform-vcm-dev] Team + Refactoring.... It's Back
|
Title: 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